From: Sachin Kamat Date: Mon, 13 May 2013 09:17:54 +0000 (-0300) Subject: [media] omap3isp: Remove redundant platform_set_drvdata() X-Git-Tag: firefly_0821_release~176^2~3573^2~1821 X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=5e5726789a2c55db2e41ea8e7171ce4ee4066d01;p=firefly-linux-kernel-4.4.55.git [media] omap3isp: Remove redundant platform_set_drvdata() Commit 0998d06310 (device-core: Ensure drvdata = NULL when no driver is bound) removes the need to set driver data field to NULL. Signed-off-by: Sachin Kamat Acked-by: Sakari Ailus Signed-off-by: Laurent Pinchart Signed-off-by: Mauro Carvalho Chehab --- diff --git a/drivers/media/platform/omap3isp/isp.c b/drivers/media/platform/omap3isp/isp.c index 4c4bd3d1a2bc..5a04077b362b 100644 --- a/drivers/media/platform/omap3isp/isp.c +++ b/drivers/media/platform/omap3isp/isp.c @@ -2291,8 +2291,6 @@ error_isp: isp_xclk_cleanup(isp); omap3isp_put(isp); error: - platform_set_drvdata(pdev, NULL); - mutex_destroy(&isp->isp_mutex); return ret;