drm/imx: directly call drm_put_dev in ->remove
Again no apparent user of the driver data field. Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch> Acked-by: Sascha Hauer <s.hauer@pengutronix.de> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
parent
fc0524b098
commit
a72f8beeed
1 changed files with 3 additions and 1 deletions
|
@ -443,6 +443,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:
|
||||||
|
@ -822,7 +824,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;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue