Skip to content

Commit

Permalink
drm/msm: call drm_put_dev directly in ->remove
Browse files Browse the repository at this point in the history
The drvdata pointer is already assigned to something useful.

Cc: Rob Clark <robdclark@gmail.com>
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Reviewed-by: Rob Clark <robdclark@gmail.com>
Signed-off-by: Dave Airlie <airlied@redhat.com>
  • Loading branch information
Daniel Vetter authored and Dave Airlie committed Dec 18, 2013
1 parent 50fb3c3 commit 0ff420f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/gpu/drm/msm/msm_drv.c
Original file line number Diff line number Diff line change
Expand Up @@ -783,7 +783,7 @@ static int msm_pdev_probe(struct platform_device *pdev)

static int msm_pdev_remove(struct platform_device *pdev)
{
drm_platform_exit(&msm_driver, pdev);
drm_put_dev(platform_get_drvdata(pdev));

return 0;
}
Expand Down

0 comments on commit 0ff420f

Please sign in to comment.