diff options
Diffstat (limited to 'drivers/gpu/drm/i915/i915_irq.c')
-rw-r--r-- | drivers/gpu/drm/i915/i915_irq.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/drivers/gpu/drm/i915/i915_irq.c b/drivers/gpu/drm/i915/i915_irq.c index fd97fe00cd0d..315e6876fa85 100644 --- a/drivers/gpu/drm/i915/i915_irq.c +++ b/drivers/gpu/drm/i915/i915_irq.c | |||
@@ -964,7 +964,7 @@ int intel_get_crtc_scanline(struct intel_crtc *crtc) | |||
964 | return position; | 964 | return position; |
965 | } | 965 | } |
966 | 966 | ||
967 | static int i915_get_vblank_timestamp(struct drm_device *dev, unsigned int pipe, | 967 | static bool i915_get_vblank_timestamp(struct drm_device *dev, unsigned int pipe, |
968 | int *max_error, | 968 | int *max_error, |
969 | struct timeval *vblank_time, | 969 | struct timeval *vblank_time, |
970 | unsigned flags) | 970 | unsigned flags) |
@@ -974,19 +974,19 @@ static int i915_get_vblank_timestamp(struct drm_device *dev, unsigned int pipe, | |||
974 | 974 | ||
975 | if (pipe >= INTEL_INFO(dev_priv)->num_pipes) { | 975 | if (pipe >= INTEL_INFO(dev_priv)->num_pipes) { |
976 | DRM_ERROR("Invalid crtc %u\n", pipe); | 976 | DRM_ERROR("Invalid crtc %u\n", pipe); |
977 | return -EINVAL; | 977 | return false; |
978 | } | 978 | } |
979 | 979 | ||
980 | /* Get drm_crtc to timestamp: */ | 980 | /* Get drm_crtc to timestamp: */ |
981 | crtc = intel_get_crtc_for_pipe(dev_priv, pipe); | 981 | crtc = intel_get_crtc_for_pipe(dev_priv, pipe); |
982 | if (crtc == NULL) { | 982 | if (crtc == NULL) { |
983 | DRM_ERROR("Invalid crtc %u\n", pipe); | 983 | DRM_ERROR("Invalid crtc %u\n", pipe); |
984 | return -EINVAL; | 984 | return false; |
985 | } | 985 | } |
986 | 986 | ||
987 | if (!crtc->base.hwmode.crtc_clock) { | 987 | if (!crtc->base.hwmode.crtc_clock) { |
988 | DRM_DEBUG_KMS("crtc %u is disabled\n", pipe); | 988 | DRM_DEBUG_KMS("crtc %u is disabled\n", pipe); |
989 | return -EBUSY; | 989 | return false; |
990 | } | 990 | } |
991 | 991 | ||
992 | /* Helper routine in DRM core does all the work: */ | 992 | /* Helper routine in DRM core does all the work: */ |