diff options
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_kms.c')
-rw-r--r-- | drivers/gpu/drm/amd/amdgpu/amdgpu_kms.c | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_kms.c b/drivers/gpu/drm/amd/amdgpu/amdgpu_kms.c index 832be632478f..a1b97809305e 100644 --- a/drivers/gpu/drm/amd/amdgpu/amdgpu_kms.c +++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_kms.c | |||
@@ -945,19 +945,19 @@ void amdgpu_disable_vblank_kms(struct drm_device *dev, unsigned int pipe) | |||
945 | * | 945 | * |
946 | * Gets the timestamp on the requested crtc based on the | 946 | * Gets the timestamp on the requested crtc based on the |
947 | * scanout position. (all asics). | 947 | * scanout position. (all asics). |
948 | * Returns postive status flags on success, negative error on failure. | 948 | * Returns true on success, false on failure. |
949 | */ | 949 | */ |
950 | int amdgpu_get_vblank_timestamp_kms(struct drm_device *dev, unsigned int pipe, | 950 | bool amdgpu_get_vblank_timestamp_kms(struct drm_device *dev, unsigned int pipe, |
951 | int *max_error, | 951 | int *max_error, |
952 | struct timeval *vblank_time, | 952 | struct timeval *vblank_time, |
953 | unsigned flags) | 953 | unsigned flags) |
954 | { | 954 | { |
955 | struct drm_crtc *crtc; | 955 | struct drm_crtc *crtc; |
956 | struct amdgpu_device *adev = dev->dev_private; | 956 | struct amdgpu_device *adev = dev->dev_private; |
957 | 957 | ||
958 | if (pipe >= dev->num_crtcs) { | 958 | if (pipe >= dev->num_crtcs) { |
959 | DRM_ERROR("Invalid crtc %u\n", pipe); | 959 | DRM_ERROR("Invalid crtc %u\n", pipe); |
960 | return -EINVAL; | 960 | return false; |
961 | } | 961 | } |
962 | 962 | ||
963 | /* Get associated drm_crtc: */ | 963 | /* Get associated drm_crtc: */ |
@@ -966,7 +966,7 @@ int amdgpu_get_vblank_timestamp_kms(struct drm_device *dev, unsigned int pipe, | |||
966 | /* This can occur on driver load if some component fails to | 966 | /* This can occur on driver load if some component fails to |
967 | * initialize completely and driver is unloaded */ | 967 | * initialize completely and driver is unloaded */ |
968 | DRM_ERROR("Uninitialized crtc %d\n", pipe); | 968 | DRM_ERROR("Uninitialized crtc %d\n", pipe); |
969 | return -EINVAL; | 969 | return false; |
970 | } | 970 | } |
971 | 971 | ||
972 | /* Helper routine in DRM core does all the work: */ | 972 | /* Helper routine in DRM core does all the work: */ |