From: Jyri Sarha Date: Tue, 6 Sep 2016 19:16:27 +0000 (+0300) Subject: drm/tilcdc: Remove unnecessary tilcdc_crtc_disable() from tilcdc_unload() X-Git-Tag: v4.14-rc1~2243^2~20^2~8 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=7eff0410276374c560e797e7676b7111fed24a3c;hp=4e910c7a1860bbc22d06da2f62010ab20a19834f;p=platform%2Fkernel%2Flinux-rpi.git drm/tilcdc: Remove unnecessary tilcdc_crtc_disable() from tilcdc_unload() Remove unnecessary tilcdc_crtc_disable() from tilcdc_unload(). The tilcdc_crtc_disable() called via tilcdc_crtc_destroy() by drm_mode_config_cleanup() couple of lines later. The early call to tilcdc_crtc_disable() was a wrong fix (that worked) for calling drm_flip_work_cleanup() before flushing the flip-work queue. Signed-off-by: Jyri Sarha Reviewed-by: Tomi Valkeinen --- diff --git a/drivers/gpu/drm/tilcdc/tilcdc_drv.c b/drivers/gpu/drm/tilcdc/tilcdc_drv.c index 52ff3e1..1981ae9 100644 --- a/drivers/gpu/drm/tilcdc/tilcdc_drv.c +++ b/drivers/gpu/drm/tilcdc/tilcdc_drv.c @@ -200,8 +200,6 @@ static int tilcdc_unload(struct drm_device *dev) { struct tilcdc_drm_private *priv = dev->dev_private; - tilcdc_crtc_disable(priv->crtc); - tilcdc_remove_external_encoders(dev); drm_fbdev_cma_fini(priv->fbdev);