drm/omap: fix up pdev_remove
Subsystems (3)
PATCH 1/1 drm/omap: fix up pdev_remove
Dave accidentally merged the wrong version of the patch in
commit fd3c02531461924853db65f2664db361b53a70d3
Author: Daniel Vetter <[email protected]> Date: Wed Dec 11 11:34:26 2013 +0100
drm/omap: call drm_put_dev directly in ->remove
which did not include the fix from Rob's review: omapdrm is split into the drm driver and the dmm driver (yeah, I've complained about that almost-impossible-to-spot difference, too). We need to unregister the dmm driver in the pdev_remove hook.
--- drivers/gpu/drm/omapdrm/omap_drv.c | 2 ++ 1 file changed, 2 insertions(+)
drivers/gpu/drm/omapdrm/omap_drv.c +2 -0
@@ -668,6 +668,8 @@ static int pdev_remove(struct platform_device *device)drm_put_dev (platform_get_drvdata (device)); +platform_driver_unregister (&omap_dmm_driver); +return 0 ; }
Signature · 1 line
1.8.4.3
Quoted 8 lines · Daniel Vetter
Dave accidentally merged the wrong version of the patch in
commit
fd3c02531461924853db65f2664db361b53a70d3Author: Daniel Vetter <[email protected]> Date: Wed Dec 11 11:34:26 2013 +0100drm/omap: call drm_put_dev directly in ->remove
Quoted 8 lines
which did not include the fix from Rob's review: omapdrm is split into the drm driver and the dmm driver (yeah, I've complained about that almost-impossible-to-spot difference, too). We need to unregister the dmm driver in the
pdev_removehook.Cc Dave Airlie <[email protected]>Cc Rob Clark <[email protected]>Signed-off-by Daniel Vetter <[email protected]>
thanks,
Quoted 20 lines
--- drivers/gpu/drm/omapdrm/omap_drv.c | 2 ++ 1 file changed, 2 insertions(+)drivers/gpu/drm/omapdrm/omap_drv.c +2
-1@@ -668,6 +668,8 @@ static int pdev_remove(struct platform_device *device)drm_put_dev (platform_get_drvdata (device)); +platform_driver_unregister (&omap_dmm_driver); +return 0 ; } --1.8.4.3