Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit c84b4356 authored by Daniel Vetter's avatar Daniel Vetter Committed by Dave Airlie
Browse files

drm/tilcdc: call drm_put_dev directly from ->remove



tilcdc already stores the drm_device in the driver data pointer. So
use that.

Cc: Rob Clark <robdclark@gmail.com>
Signed-off-by: default avatarDaniel Vetter <daniel.vetter@ffwll.ch>
Reviewed-by: default avatarRob Clark <robdclark@gmail.com>
Signed-off-by: default avatarDave Airlie <airlied@redhat.com>
parent 9076dccf
Loading
Loading
Loading
Loading
+1 −1
Original line number Original line Diff line number Diff line
@@ -594,7 +594,7 @@ static int tilcdc_pdev_probe(struct platform_device *pdev)


static int tilcdc_pdev_remove(struct platform_device *pdev)
static int tilcdc_pdev_remove(struct platform_device *pdev)
{
{
	drm_platform_exit(&tilcdc_driver, pdev);
	drm_put_dev(platform_get_drvdata(pdev));


	return 0;
	return 0;
}
}