summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDaniel Vetter <daniel.vetter@ffwll.ch>2013-12-11 11:34:24 +0100
committerDave Airlie <airlied@redhat.com>2013-12-18 11:05:41 +1000
commit9076dccfc532e1b00cb181304d3066aeb19ad45b (patch)
tree1c61123c1b5fcdbf0879bbd405cdd59375ea1768
parenta9a346d6a8c6f5859c01267c071f2124a6f1f724 (diff)
downloadop-kernel-dev-9076dccfc532e1b00cb181304d3066aeb19ad45b.zip
op-kernel-dev-9076dccfc532e1b00cb181304d3066aeb19ad45b.tar.gz
drm/imx: directly call drm_put_dev in ->remove
Again no apparent user of the driver data field. Cc: Sascha Hauer <s.hauer@pengutronix.de> Cc: Greg Kroah-Hartman <gregkh@linuxfoundation.org> Acked-by: Sascha Hauer <s.hauer@pengutronix.de> Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch> Signed-off-by: Dave Airlie <airlied@redhat.com>
-rw-r--r--drivers/staging/imx-drm/imx-drm-core.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/drivers/staging/imx-drm/imx-drm-core.c b/drivers/staging/imx-drm/imx-drm-core.c
index 6bd015a..0507b66 100644
--- a/drivers/staging/imx-drm/imx-drm-core.c
+++ b/drivers/staging/imx-drm/imx-drm-core.c
@@ -444,6 +444,8 @@ static int imx_drm_driver_load(struct drm_device *drm, unsigned long flags)
if (!imx_drm_device_get())
ret = -EINVAL;
+ platform_set_drvdata(drm->platformdev, drm);
+
ret = 0;
err_init:
@@ -829,7 +831,7 @@ static int imx_drm_platform_probe(struct platform_device *pdev)
static int imx_drm_platform_remove(struct platform_device *pdev)
{
- drm_platform_exit(&imx_drm_driver, pdev);
+ drm_put_dev(platform_get_drvdata(pdev));
return 0;
}
OpenPOWER on IntegriCloud