提交 405bea7a 编写于 作者: D Daniel Vetter 提交者: Dave Airlie

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: NDaniel Vetter <daniel.vetter@ffwll.ch>
Acked-by: NLaurent Pinchart <laurent.pinchart+renesas@ideasonboard.com>
Signed-off-by: NDave Airlie <airlied@redhat.com>
上级 fd3c0253
...@@ -336,7 +336,9 @@ static int shmob_drm_probe(struct platform_device *pdev) ...@@ -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;
} }
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册