From: Daniel Vetter Date: Wed, 11 Dec 2013 10:34:25 +0000 (+0100) Subject: drm/tilcdc: call drm_put_dev directly from ->remove X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=c84b4356571d8fb34acbc5522b07f256c0347a22;p=GitHub%2Fmoto-9609%2Fandroid_kernel_motorola_exynos9610.git 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 Signed-off-by: Daniel Vetter Reviewed-by: Rob Clark Signed-off-by: Dave Airlie --- diff --git a/drivers/gpu/drm/tilcdc/tilcdc_drv.c b/drivers/gpu/drm/tilcdc/tilcdc_drv.c index 116da199b942..e6d77d02e444 100644 --- a/drivers/gpu/drm/tilcdc/tilcdc_drv.c +++ b/drivers/gpu/drm/tilcdc/tilcdc_drv.c @@ -594,7 +594,7 @@ static int tilcdc_pdev_probe(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; }