Browse Source

drm/shmob: call drm_put_dev directly from ->remove hook

We need to chase one pointer here.

Cc: Laurent Pinchart <laurent.pinchart+renesas@ideasonboard.com>
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Acked-by: Laurent Pinchart <laurent.pinchart+renesas@ideasonboard.com>
Signed-off-by: Dave Airlie <airlied@redhat.com>
Daniel Vetter 11 years ago
parent
commit
405bea7a9e
1 changed files with 3 additions and 1 deletions
  1. 3 1
      drivers/gpu/drm/shmobile/shmob_drm_drv.c

+ 3 - 1
drivers/gpu/drm/shmobile/shmob_drm_drv.c

@@ -336,7 +336,9 @@ static int shmob_drm_probe(struct platform_device *pdev)
 
 
 static int shmob_drm_remove(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;
 	return 0;
 }
 }