summaryrefslogtreecommitdiff
path: root/drivers/gpu
diff options
context:
space:
mode:
authorDaniel Vetter <daniel.vetter@ffwll.ch>2013-12-11 11:34:23 +0100
committerMarek Szyprowski <m.szyprowski@samsung.com>2014-05-15 07:28:55 +0200
commit63ccdd9397b43615839efe65e49c57f857b0a299 (patch)
tree40b787443f334264626dcc1da08b4b435817c640 /drivers/gpu
parent3d2b92177b751c7011a153af10951479dcc2929b (diff)
downloadlinux-3.10-63ccdd9397b43615839efe65e49c57f857b0a299.tar.gz
linux-3.10-63ccdd9397b43615839efe65e49c57f857b0a299.tar.bz2
linux-3.10-63ccdd9397b43615839efe65e49c57f857b0a299.zip
drm/exynos: call drm_put_dev directly from ->remove
I didn't find any user of the driver data yet, so store the drm_device pointer in there. Cc: Inki Dae <inki.dae@samsung.com> Acked-by: Inki Dae <inki.dae@samsung.com> Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch> Signed-off-by: Dave Airlie <airlied@redhat.com>
Diffstat (limited to 'drivers/gpu')
-rw-r--r--drivers/gpu/drm/exynos/exynos_drm_drv.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/drivers/gpu/drm/exynos/exynos_drm_drv.c b/drivers/gpu/drm/exynos/exynos_drm_drv.c
index 1f9b24a939a..db1e2cd6d0b 100644
--- a/drivers/gpu/drm/exynos/exynos_drm_drv.c
+++ b/drivers/gpu/drm/exynos/exynos_drm_drv.c
@@ -120,6 +120,8 @@ static int exynos_drm_load(struct drm_device *dev, unsigned long flags)
drm_vblank_offdelay = VBLANK_OFF_DELAY;
+ platform_set_drvdata(dev->platformdev, dev);
+
return 0;
err_drm_device:
@@ -332,7 +334,7 @@ static int exynos_drm_platform_probe(struct platform_device *pdev)
static int exynos_drm_platform_remove(struct platform_device *pdev)
{
- drm_platform_exit(&exynos_drm_driver, pdev);
+ drm_put_dev(platform_get_drvdata(pdev));
return 0;
}