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 ad8d16cf819c654124def8a8848dccf809c99c06..7b917c0c1a27683756e28c619d0e146cb7cad1e7 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);