diff options
Diffstat (limited to 'drivers/gpu/drm/imx/imx-drm-core.c')
-rw-r--r-- | drivers/gpu/drm/imx/imx-drm-core.c | 10 |
1 files changed, 0 insertions, 10 deletions
diff --git a/drivers/gpu/drm/imx/imx-drm-core.c b/drivers/gpu/drm/imx/imx-drm-core.c index 9876e0f0c3e1..e26dcdec2aba 100644 --- a/drivers/gpu/drm/imx/imx-drm-core.c +++ b/drivers/gpu/drm/imx/imx-drm-core.c | |||
@@ -326,7 +326,6 @@ int imx_drm_add_crtc(struct drm_device *drm, struct drm_crtc *crtc, | |||
326 | { | 326 | { |
327 | struct imx_drm_device *imxdrm = drm->dev_private; | 327 | struct imx_drm_device *imxdrm = drm->dev_private; |
328 | struct imx_drm_crtc *imx_drm_crtc; | 328 | struct imx_drm_crtc *imx_drm_crtc; |
329 | int ret; | ||
330 | 329 | ||
331 | /* | 330 | /* |
332 | * The vblank arrays are dimensioned by MAX_CRTC - we can't | 331 | * The vblank arrays are dimensioned by MAX_CRTC - we can't |
@@ -351,10 +350,6 @@ int imx_drm_add_crtc(struct drm_device *drm, struct drm_crtc *crtc, | |||
351 | 350 | ||
352 | *new_crtc = imx_drm_crtc; | 351 | *new_crtc = imx_drm_crtc; |
353 | 352 | ||
354 | ret = drm_mode_crtc_set_gamma_size(imx_drm_crtc->crtc, 256); | ||
355 | if (ret) | ||
356 | goto err_register; | ||
357 | |||
358 | drm_crtc_helper_add(crtc, | 353 | drm_crtc_helper_add(crtc, |
359 | imx_drm_crtc->imx_drm_helper_funcs.crtc_helper_funcs); | 354 | imx_drm_crtc->imx_drm_helper_funcs.crtc_helper_funcs); |
360 | 355 | ||
@@ -362,11 +357,6 @@ int imx_drm_add_crtc(struct drm_device *drm, struct drm_crtc *crtc, | |||
362 | imx_drm_crtc->imx_drm_helper_funcs.crtc_funcs, NULL); | 357 | imx_drm_crtc->imx_drm_helper_funcs.crtc_funcs, NULL); |
363 | 358 | ||
364 | return 0; | 359 | return 0; |
365 | |||
366 | err_register: | ||
367 | imxdrm->crtc[--imxdrm->pipes] = NULL; | ||
368 | kfree(imx_drm_crtc); | ||
369 | return ret; | ||
370 | } | 360 | } |
371 | EXPORT_SYMBOL_GPL(imx_drm_add_crtc); | 361 | EXPORT_SYMBOL_GPL(imx_drm_add_crtc); |
372 | 362 | ||