drm/msm: call drm_put_dev directly in ->remove
authorDaniel Vetter <[email protected]>
Wed, 11 Dec 2013 10:34:29 +0000 (11:34 +0100)
committerDave Airlie <[email protected]>
Wed, 18 Dec 2013 01:05:49 +0000 (11:05 +1000)
The drvdata pointer is already assigned to something useful.

Cc: Rob Clark <[email protected]>
Signed-off-by: Daniel Vetter <[email protected]>
Reviewed-by: Rob Clark <[email protected]>
Signed-off-by: Dave Airlie <[email protected]>
drivers/gpu/drm/msm/msm_drv.c

index 86537692e45c4efaeae162d32753cf5613216954..aa5f3546bbecb0311e922ad6a5cb0101a1268701 100644 (file)
@@ -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;
 }