diff options
author | Daniel Vetter <daniel.vetter@ffwll.ch> | 2013-12-11 05:34:26 -0500 |
---|---|---|
committer | Dave Airlie <airlied@redhat.com> | 2013-12-17 20:05:44 -0500 |
commit | fd3c02531461924853db65f2664db361b53a70d3 (patch) | |
tree | 05d32f34cf62603af040b16b3f7e44380c7f2478 /drivers/gpu/drm/omapdrm/omap_drv.c | |
parent | c84b4356571d8fb34acbc5522b07f256c0347a22 (diff) |
drm/omap: call drm_put_dev directly in ->remove
Again omap already sets the driver data pointer to the drm_device.
Also drop the driver unregister call, that should be (and already is)
done in the module unload hook.
Cc: Rob Clark <robdclark@gmail.com>
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Signed-off-by: Dave Airlie <airlied@redhat.com>
Diffstat (limited to 'drivers/gpu/drm/omapdrm/omap_drv.c')
-rw-r--r-- | drivers/gpu/drm/omapdrm/omap_drv.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/gpu/drm/omapdrm/omap_drv.c b/drivers/gpu/drm/omapdrm/omap_drv.c index e7fa3cd96743..13f294aeaefd 100644 --- a/drivers/gpu/drm/omapdrm/omap_drv.c +++ b/drivers/gpu/drm/omapdrm/omap_drv.c | |||
@@ -665,9 +665,9 @@ static int pdev_probe(struct platform_device *device) | |||
665 | static int pdev_remove(struct platform_device *device) | 665 | static int pdev_remove(struct platform_device *device) |
666 | { | 666 | { |
667 | DBG(""); | 667 | DBG(""); |
668 | drm_platform_exit(&omap_drm_driver, device); | ||
669 | 668 | ||
670 | platform_driver_unregister(&omap_dmm_driver); | 669 | drm_put_dev(platform_get_drvdata(device)); |
670 | |||
671 | return 0; | 671 | return 0; |
672 | } | 672 | } |
673 | 673 | ||