Skip to content

Commit

Permalink
drm/omap: call drm_put_dev directly in ->remove
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Daniel Vetter authored and Dave Airlie committed Dec 18, 2013
1 parent c84b435 commit fd3c025
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions drivers/gpu/drm/omapdrm/omap_drv.c
Original file line number Diff line number Diff line change
Expand Up @@ -665,9 +665,9 @@ static int pdev_probe(struct platform_device *device)
static int pdev_remove(struct platform_device *device)
{
DBG("");
drm_platform_exit(&omap_drm_driver, device);

platform_driver_unregister(&omap_dmm_driver);
drm_put_dev(platform_get_drvdata(device));

return 0;
}

Expand Down

0 comments on commit fd3c025

Please sign in to comment.