From: Daniel Vetter Date: Wed, 11 Dec 2013 10:34:29 +0000 (+0100) Subject: drm/msm: call drm_put_dev directly in ->remove X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=0ff420f7f50c7d429d1c00058a0350559c0b9bb5;p=GitHub%2Fexynos8895%2Fandroid_kernel_samsung_universal8895.git drm/msm: call drm_put_dev directly in ->remove The drvdata pointer is already assigned to something useful. Cc: Rob Clark Signed-off-by: Daniel Vetter Reviewed-by: Rob Clark Signed-off-by: Dave Airlie --- diff --git a/drivers/gpu/drm/msm/msm_drv.c b/drivers/gpu/drm/msm/msm_drv.c index 86537692e45c..aa5f3546bbec 100644 --- a/drivers/gpu/drm/msm/msm_drv.c +++ b/drivers/gpu/drm/msm/msm_drv.c @@ -783,7 +783,7 @@ static int msm_pdev_probe(struct platform_device *pdev) static int msm_pdev_remove(struct platform_device *pdev) { - drm_platform_exit(&msm_driver, pdev); + drm_put_dev(platform_get_drvdata(pdev)); return 0; }