Skip to content

Commit

Permalink
drm/shmob: call drm_put_dev directly from ->remove hook
Browse files Browse the repository at this point in the history
We need to chase one pointer here.

Cc: Laurent Pinchart <laurent.pinchart+renesas@ideasonboard.com>
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Acked-by: Laurent Pinchart <laurent.pinchart+renesas@ideasonboard.com>
Signed-off-by: Dave Airlie <airlied@redhat.com>
  • Loading branch information
Daniel Vetter authored and Dave Airlie committed Dec 18, 2013
1 parent fd3c025 commit 405bea7
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion drivers/gpu/drm/shmobile/shmob_drm_drv.c
Original file line number Diff line number Diff line change
Expand Up @@ -336,7 +336,9 @@ static int shmob_drm_probe(struct platform_device *pdev)

static int shmob_drm_remove(struct platform_device *pdev)
{
drm_platform_exit(&shmob_drm_driver, pdev);
struct shmob_drm_device *sdev = platform_get_drvdata(pdev);

drm_put_dev(sdev->ddev);

return 0;
}
Expand Down

0 comments on commit 405bea7

Please sign in to comment.