From: Sachin Kamat Date: Mon, 13 May 2013 09:17:54 +0000 (-0300) Subject: [media] omap3isp: Remove redundant platform_set_drvdata() X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=5e5726789a2c55db2e41ea8e7171ce4ee4066d01;p=openwrt%2Fstaging%2Fblogic.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;