diff options
author | Daniel Vetter | 2013-12-11 11:34:29 +0100 |
---|---|---|
committer | Dave Airlie | 2013-12-18 11:05:49 +1000 |
commit | 0ff420f7f50c7d429d1c00058a0350559c0b9bb5 (patch) | |
tree | 1a62b3fb437952c91f2b4e9ac913a3e433909fe0 /drivers/gpu/drm/msm | |
parent | 50fb3c3b2e7811474a27df3b9d6e054a7c4d2cd7 (diff) |
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: Daniel Vetter <daniel.vetter@ffwll.ch>
Reviewed-by: Rob Clark <robdclark@gmail.com>
Signed-off-by: Dave Airlie <airlied@redhat.com>
Diffstat (limited to 'drivers/gpu/drm/msm')
-rw-r--r-- | drivers/gpu/drm/msm/msm_drv.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/gpu/drm/msm/msm_drv.c b/drivers/gpu/drm/msm/msm_drv.c index 86537692e45c..aa5f3546bbec 100644 --- a/drivers/gpu/drm/msm/msm_drv.c +++ b/drivers/gpu/drm/msm/msm_drv.c @@ -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; } |