diff options
author | Daniel Vetter <daniel.vetter@ffwll.ch> | 2013-12-11 05:34:25 -0500 |
---|---|---|
committer | Dave Airlie <airlied@redhat.com> | 2013-12-17 20:05:43 -0500 |
commit | c84b4356571d8fb34acbc5522b07f256c0347a22 (patch) | |
tree | 182ff98f036d27b4c9ddfd2b8379504deccbce36 /drivers/gpu/drm/tilcdc | |
parent | 9076dccfc532e1b00cb181304d3066aeb19ad45b (diff) |
drm/tilcdc: call drm_put_dev directly from ->remove
tilcdc already stores the drm_device in the driver data pointer. So
use that.
Cc: Rob Clark <robdclark@gmail.com>
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Reviewed-by: Rob Clark <robdclark@gmail.com>
Signed-off-by: Dave Airlie <airlied@redhat.com>
Diffstat (limited to 'drivers/gpu/drm/tilcdc')
-rw-r--r-- | drivers/gpu/drm/tilcdc/tilcdc_drv.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/gpu/drm/tilcdc/tilcdc_drv.c b/drivers/gpu/drm/tilcdc/tilcdc_drv.c index 116da199b942..e6d77d02e444 100644 --- a/drivers/gpu/drm/tilcdc/tilcdc_drv.c +++ b/drivers/gpu/drm/tilcdc/tilcdc_drv.c | |||
@@ -594,7 +594,7 @@ static int tilcdc_pdev_probe(struct platform_device *pdev) | |||
594 | 594 | ||
595 | static int tilcdc_pdev_remove(struct platform_device *pdev) | 595 | static int tilcdc_pdev_remove(struct platform_device *pdev) |
596 | { | 596 | { |
597 | drm_platform_exit(&tilcdc_driver, pdev); | 597 | drm_put_dev(platform_get_drvdata(pdev)); |
598 | 598 | ||
599 | return 0; | 599 | return 0; |
600 | } | 600 | } |