Commit 9076dccf authored by Daniel Vetter's avatar Daniel Vetter Committed by Dave Airlie

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: default avatarSascha Hauer <s.hauer@pengutronix.de>
Signed-off-by: default avatarDaniel Vetter <daniel.vetter@ffwll.ch>
Signed-off-by: default avatarDave Airlie <airlied@redhat.com>
parent a9a346d6
...@@ -444,6 +444,8 @@ static int imx_drm_driver_load(struct drm_device *drm, unsigned long flags) ...@@ -444,6 +444,8 @@ static int imx_drm_driver_load(struct drm_device *drm, unsigned long flags)
if (!imx_drm_device_get()) if (!imx_drm_device_get())
ret = -EINVAL; ret = -EINVAL;
platform_set_drvdata(drm->platformdev, drm);
ret = 0; ret = 0;
err_init: err_init:
...@@ -829,7 +831,7 @@ static int imx_drm_platform_probe(struct platform_device *pdev) ...@@ -829,7 +831,7 @@ static int imx_drm_platform_probe(struct platform_device *pdev)
static int imx_drm_platform_remove(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; return 0;
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment