Commit 0ff420f7 authored by Daniel Vetter's avatar Daniel Vetter Committed by Dave Airlie

drm/msm: call drm_put_dev directly in ->remove

The drvdata pointer is already assigned to something useful.

Cc: Rob Clark <robdclark@gmail.com>
Signed-off-by: default avatarDaniel Vetter <daniel.vetter@ffwll.ch>
Reviewed-by: default avatarRob Clark <robdclark@gmail.com>
Signed-off-by: default avatarDave Airlie <airlied@redhat.com>
parent 50fb3c3b
...@@ -783,7 +783,7 @@ static int msm_pdev_probe(struct platform_device *pdev) ...@@ -783,7 +783,7 @@ static int msm_pdev_probe(struct platform_device *pdev)
static int msm_pdev_remove(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; return 0;
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment