|
@@ -531,14 +531,13 @@ int malidp_crtc_init(struct drm_device *drm)
|
|
|
|
|
|
if (!primary) {
|
|
|
DRM_ERROR("no primary plane found\n");
|
|
|
- ret = -EINVAL;
|
|
|
- goto crtc_cleanup_planes;
|
|
|
+ return -EINVAL;
|
|
|
}
|
|
|
|
|
|
ret = drm_crtc_init_with_planes(drm, &malidp->crtc, primary, NULL,
|
|
|
&malidp_crtc_funcs, NULL);
|
|
|
if (ret)
|
|
|
- goto crtc_cleanup_planes;
|
|
|
+ return ret;
|
|
|
|
|
|
drm_crtc_helper_add(&malidp->crtc, &malidp_crtc_helper_funcs);
|
|
|
drm_mode_crtc_set_gamma_size(&malidp->crtc, MALIDP_GAMMA_LUT_SIZE);
|
|
@@ -548,9 +547,4 @@ int malidp_crtc_init(struct drm_device *drm)
|
|
|
malidp_se_set_enh_coeffs(malidp->dev);
|
|
|
|
|
|
return 0;
|
|
|
-
|
|
|
-crtc_cleanup_planes:
|
|
|
- malidp_de_planes_destroy(drm);
|
|
|
-
|
|
|
- return ret;
|
|
|
}
|