drm/omap: use drm_atomic_helper_shutdown()
authorTomi Valkeinen <tomi.valkeinen@ti.com>
Mon, 27 Mar 2017 07:02:22 +0000 (10:02 +0300)
committerTomi Valkeinen <tomi.valkeinen@ti.com>
Mon, 3 Apr 2017 09:36:40 +0000 (12:36 +0300)
Use drm_atomic_helper_shutdown() to ensure that all crtcs are disabled
when unloading the driver.

Signed-off-by: Tomi Valkeinen <tomi.valkeinen@ti.com>
drivers/gpu/drm/omapdrm/omap_drv.c

index ad8d16c..7b917c0 100644 (file)
@@ -865,6 +865,8 @@ static int pdev_remove(struct platform_device *pdev)
        if (priv->fbdev)
                omap_fbdev_free(ddev);
 
+       drm_atomic_helper_shutdown(ddev);
+
        drm_mode_config_cleanup(ddev);
 
        omap_drm_irq_uninstall(ddev);