drm/shmob: call drm_put_dev directly from ->remove hook
[platform/adaptation/renesas_rcar/renesas_kernel.git] / drivers / gpu / drm / shmobile / shmob_drm_drv.c
index 0155518..c839c9c 100644 (file)
@@ -336,7 +336,9 @@ static int shmob_drm_probe(struct platform_device *pdev)
 
 static int shmob_drm_remove(struct platform_device *pdev)
 {
-       drm_platform_exit(&shmob_drm_driver, pdev);
+       struct shmob_drm_device *sdev = platform_get_drvdata(pdev);
+
+       drm_put_dev(sdev->ddev);
 
        return 0;
 }