mirror of
https://github.com/torvalds/linux.git
synced 2026-11-28 09:22:27 +00:00
drm: mxsfb: Shutdown the display on remove
When the device is unbound from the driver, the display may be active. Make sure it gets shut down. Signed-off-by: Marek Vasut <[email protected]> Cc: Daniel Vetter <[email protected]> Cc: Laurent Pinchart <[email protected]> Cc: Lucas Stach <[email protected]> Cc: Sam Ravnborg <[email protected]> Cc: Stefan Agner <[email protected]> Cc: Thomas Zimmermann <[email protected]> Reviewed-by: Laurent Pinchart <[email protected]> Signed-off-by: Thomas Zimmermann <[email protected]> Link: https://patchwork.freedesktop.org/patch/msgid/[email protected]
This commit is contained in:
committed by
Thomas Zimmermann
parent
1d61d359c2
commit
72f6c03336
@@ -374,6 +374,7 @@ static int mxsfb_remove(struct platform_device *pdev)
|
||||
struct drm_device *drm = platform_get_drvdata(pdev);
|
||||
|
||||
drm_dev_unregister(drm);
|
||||
drm_atomic_helper_shutdown(drm);
|
||||
mxsfb_unload(drm);
|
||||
drm_dev_put(drm);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user