Skip to content

Commit

Permalink
drm/imx: directly call drm_put_dev in ->remove
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Daniel Vetter authored and Dave Airlie committed Dec 18, 2013
1 parent a9a346d commit 9076dcc
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion drivers/staging/imx-drm/imx-drm-core.c
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down Expand Up @@ -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;
}
Expand Down

0 comments on commit 9076dcc

Please sign in to comment.