diff options
-rw-r--r-- | drivers/gpu/drm/drm_crtc.c | 6 | ||||
-rw-r--r-- | include/drm/drm_crtc.h | 2 |
2 files changed, 4 insertions, 4 deletions
diff --git a/drivers/gpu/drm/drm_crtc.c b/drivers/gpu/drm/drm_crtc.c index 33ebe291d18..df6e4135680 100644 --- a/drivers/gpu/drm/drm_crtc.c +++ b/drivers/gpu/drm/drm_crtc.c | |||
@@ -3024,7 +3024,7 @@ void drm_mode_connector_detach_encoder(struct drm_connector *connector, | |||
3024 | } | 3024 | } |
3025 | EXPORT_SYMBOL(drm_mode_connector_detach_encoder); | 3025 | EXPORT_SYMBOL(drm_mode_connector_detach_encoder); |
3026 | 3026 | ||
3027 | bool drm_mode_crtc_set_gamma_size(struct drm_crtc *crtc, | 3027 | int drm_mode_crtc_set_gamma_size(struct drm_crtc *crtc, |
3028 | int gamma_size) | 3028 | int gamma_size) |
3029 | { | 3029 | { |
3030 | crtc->gamma_size = gamma_size; | 3030 | crtc->gamma_size = gamma_size; |
@@ -3032,10 +3032,10 @@ bool drm_mode_crtc_set_gamma_size(struct drm_crtc *crtc, | |||
3032 | crtc->gamma_store = kzalloc(gamma_size * sizeof(uint16_t) * 3, GFP_KERNEL); | 3032 | crtc->gamma_store = kzalloc(gamma_size * sizeof(uint16_t) * 3, GFP_KERNEL); |
3033 | if (!crtc->gamma_store) { | 3033 | if (!crtc->gamma_store) { |
3034 | crtc->gamma_size = 0; | 3034 | crtc->gamma_size = 0; |
3035 | return false; | 3035 | return -ENOMEM; |
3036 | } | 3036 | } |
3037 | 3037 | ||
3038 | return true; | 3038 | return 0; |
3039 | } | 3039 | } |
3040 | EXPORT_SYMBOL(drm_mode_crtc_set_gamma_size); | 3040 | EXPORT_SYMBOL(drm_mode_crtc_set_gamma_size); |
3041 | 3041 | ||
diff --git a/include/drm/drm_crtc.h b/include/drm/drm_crtc.h index 4cd4be26722..8d593ad95f1 100644 --- a/include/drm/drm_crtc.h +++ b/include/drm/drm_crtc.h | |||
@@ -919,7 +919,7 @@ extern int drm_mode_connector_attach_encoder(struct drm_connector *connector, | |||
919 | struct drm_encoder *encoder); | 919 | struct drm_encoder *encoder); |
920 | extern void drm_mode_connector_detach_encoder(struct drm_connector *connector, | 920 | extern void drm_mode_connector_detach_encoder(struct drm_connector *connector, |
921 | struct drm_encoder *encoder); | 921 | struct drm_encoder *encoder); |
922 | extern bool drm_mode_crtc_set_gamma_size(struct drm_crtc *crtc, | 922 | extern int drm_mode_crtc_set_gamma_size(struct drm_crtc *crtc, |
923 | int gamma_size); | 923 | int gamma_size); |
924 | extern struct drm_mode_object *drm_mode_object_find(struct drm_device *dev, | 924 | extern struct drm_mode_object *drm_mode_object_find(struct drm_device *dev, |
925 | uint32_t id, uint32_t type); | 925 | uint32_t id, uint32_t type); |