mirror of
https://github.com/Fishwaldo/linux-bl808.git
synced 2025-06-07 15:15:29 +00:00
drm: arm: hdlcd: Don't destroy plane manually in hdlcd_setup_crtc()
The top-level error handler calls drm_mode_config_cleanup() which will destroy all planes. There's no need to destroy them manually in lower error handlers. Signed-off-by: Laurent Pinchart <laurent.pinchart+renesas@ideasonboard.com> Signed-off-by: Liviu Dudau <liviu.dudau@arm.com>
This commit is contained in:
parent
1785dbc412
commit
8df24d57d3
1 changed files with 1 additions and 3 deletions
|
@ -334,10 +334,8 @@ int hdlcd_setup_crtc(struct drm_device *drm)
|
||||||
|
|
||||||
ret = drm_crtc_init_with_planes(drm, &hdlcd->crtc, primary, NULL,
|
ret = drm_crtc_init_with_planes(drm, &hdlcd->crtc, primary, NULL,
|
||||||
&hdlcd_crtc_funcs, NULL);
|
&hdlcd_crtc_funcs, NULL);
|
||||||
if (ret) {
|
if (ret)
|
||||||
hdlcd_plane_destroy(primary);
|
|
||||||
return ret;
|
return ret;
|
||||||
}
|
|
||||||
|
|
||||||
drm_crtc_helper_add(&hdlcd->crtc, &hdlcd_crtc_helper_funcs);
|
drm_crtc_helper_add(&hdlcd->crtc, &hdlcd_crtc_helper_funcs);
|
||||||
return 0;
|
return 0;
|
||||||
|
|
Loading…
Add table
Reference in a new issue