diff options
-rw-r--r-- | drivers/gpu/drm/shmobile/shmob_drm_drv.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/drivers/gpu/drm/shmobile/shmob_drm_drv.c b/drivers/gpu/drm/shmobile/shmob_drm_drv.c index 015551866b4a..c839c9c89efb 100644 --- a/drivers/gpu/drm/shmobile/shmob_drm_drv.c +++ b/drivers/gpu/drm/shmobile/shmob_drm_drv.c | |||
@@ -336,7 +336,9 @@ static int shmob_drm_probe(struct platform_device *pdev) | |||
336 | 336 | ||
337 | static int shmob_drm_remove(struct platform_device *pdev) | 337 | static int shmob_drm_remove(struct platform_device *pdev) |
338 | { | 338 | { |
339 | drm_platform_exit(&shmob_drm_driver, pdev); | 339 | struct shmob_drm_device *sdev = platform_get_drvdata(pdev); |
340 | |||
341 | drm_put_dev(sdev->ddev); | ||
340 | 342 | ||
341 | return 0; | 343 | return 0; |
342 | } | 344 | } |