drm/tilcdc: call drm_put_dev directly from ->remove
authorDaniel Vetter <daniel.vetter@ffwll.ch>
Wed, 11 Dec 2013 10:34:25 +0000 (11:34 +0100)
committerDave Airlie <airlied@redhat.com>
Wed, 18 Dec 2013 01:05:43 +0000 (11:05 +1000)
tilcdc already stores the drm_device in the driver data pointer. So
use that.

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>
drivers/gpu/drm/tilcdc/tilcdc_drv.c

index 116da199b9429a56ba8a7b58efc953369b721344..e6d77d02e444033bf7f4a5b57e5262b9223cf4de 100644 (file)
@@ -594,7 +594,7 @@ static int tilcdc_pdev_probe(struct platform_device *pdev)
 
 static int tilcdc_pdev_remove(struct platform_device *pdev)
 {
-       drm_platform_exit(&tilcdc_driver, pdev);
+       drm_put_dev(platform_get_drvdata(pdev));
 
        return 0;
 }