diff options
Diffstat (limited to 'drivers/gpu/drm/imx/imx-drm-core.c')
| -rw-r--r-- | drivers/gpu/drm/imx/imx-drm-core.c | 7 | 
1 files changed, 3 insertions, 4 deletions
diff --git a/drivers/gpu/drm/imx/imx-drm-core.c b/drivers/gpu/drm/imx/imx-drm-core.c index 64f16ea779ef..7b990b4e96d2 100644 --- a/drivers/gpu/drm/imx/imx-drm-core.c +++ b/drivers/gpu/drm/imx/imx-drm-core.c @@ -63,8 +63,7 @@ static void imx_drm_driver_lastclose(struct drm_device *drm)  #if IS_ENABLED(CONFIG_DRM_IMX_FB_HELPER)  	struct imx_drm_device *imxdrm = drm->dev_private; -	if (imxdrm->fbhelper) -		drm_fbdev_cma_restore_mode(imxdrm->fbhelper); +	drm_fbdev_cma_restore_mode(imxdrm->fbhelper);  #endif  } @@ -340,7 +339,7 @@ err_kms:   * imx_drm_add_crtc - add a new crtc   */  int imx_drm_add_crtc(struct drm_device *drm, struct drm_crtc *crtc, -		struct imx_drm_crtc **new_crtc, +		struct imx_drm_crtc **new_crtc, struct drm_plane *primary_plane,  		const struct imx_drm_crtc_helper_funcs *imx_drm_helper_funcs,  		struct device_node *port)  { @@ -379,7 +378,7 @@ int imx_drm_add_crtc(struct drm_device *drm, struct drm_crtc *crtc,  	drm_crtc_helper_add(crtc,  			imx_drm_crtc->imx_drm_helper_funcs.crtc_helper_funcs); -	drm_crtc_init(drm, crtc, +	drm_crtc_init_with_planes(drm, crtc, primary_plane, NULL,  			imx_drm_crtc->imx_drm_helper_funcs.crtc_funcs);  	return 0;  | 
