diff options
author | Daniel Vetter <daniel.vetter@ffwll.ch> | 2013-12-11 05:34:28 -0500 |
---|---|---|
committer | Dave Airlie <airlied@redhat.com> | 2013-12-17 20:05:48 -0500 |
commit | 50fb3c3b2e7811474a27df3b9d6e054a7c4d2cd7 (patch) | |
tree | e675e88b4ae75d60c9a8ffca42fc4f09d892ec52 /drivers/gpu/drm/armada | |
parent | 405bea7a9e6427db0ca60fee99bfbef7fcaba977 (diff) |
drm/armada: directly call drm_put_dev in ->remove
Again no apparent user of the driver data field.
Cc: Russell King <rmk+kernel@arm.linux.org.uk>
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Signed-off-by: Dave Airlie <airlied@redhat.com>
Diffstat (limited to 'drivers/gpu/drm/armada')
-rw-r--r-- | drivers/gpu/drm/armada/armada_drv.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/gpu/drm/armada/armada_drv.c b/drivers/gpu/drm/armada/armada_drv.c index 4f2b28354915..069f64533ac3 100644 --- a/drivers/gpu/drm/armada/armada_drv.c +++ b/drivers/gpu/drm/armada/armada_drv.c | |||
@@ -128,6 +128,7 @@ static int armada_drm_load(struct drm_device *dev, unsigned long flags) | |||
128 | return -ENOMEM; | 128 | return -ENOMEM; |
129 | } | 129 | } |
130 | 130 | ||
131 | platform_set_drvdata(dev->platformdev, dev); | ||
131 | dev->dev_private = priv; | 132 | dev->dev_private = priv; |
132 | 133 | ||
133 | /* Get the implementation specific driver data. */ | 134 | /* Get the implementation specific driver data. */ |
@@ -376,7 +377,7 @@ static int armada_drm_probe(struct platform_device *pdev) | |||
376 | 377 | ||
377 | static int armada_drm_remove(struct platform_device *pdev) | 378 | static int armada_drm_remove(struct platform_device *pdev) |
378 | { | 379 | { |
379 | drm_platform_exit(&armada_drm_driver, pdev); | 380 | drm_put_dev(platform_get_drvdata(pdev)); |
380 | return 0; | 381 | return 0; |
381 | } | 382 | } |
382 | 383 | ||