diff options
author | Laurent Pinchart <laurent.pinchart@ideasonboard.com> | 2011-09-22 16:09:26 -0400 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@redhat.com> | 2011-11-03 16:31:31 -0400 |
commit | ed33ac8e0876a3016511ea0aaf9af1d965ee2c44 (patch) | |
tree | b4b0c581a0ec831d3857d86205234b8924bd6ba5 /drivers/media/video/omap3isp/isp.c | |
parent | 39099d09ae4605003696919d7c3a6e8a96607c4b (diff) |
[media] omap3isp: Add missing mutex_destroy() calls
Mutexes must be destroyed with mutex_destroy(). Add missing calls in the
modules cleanup handlers.
Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
Diffstat (limited to 'drivers/media/video/omap3isp/isp.c')
-rw-r--r-- | drivers/media/video/omap3isp/isp.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/media/video/omap3isp/isp.c b/drivers/media/video/omap3isp/isp.c index 678e1252047a..c8f147ef320d 100644 --- a/drivers/media/video/omap3isp/isp.c +++ b/drivers/media/video/omap3isp/isp.c | |||
@@ -2210,6 +2210,8 @@ error: | |||
2210 | regulator_put(isp->isp_csiphy2.vdd); | 2210 | regulator_put(isp->isp_csiphy2.vdd); |
2211 | regulator_put(isp->isp_csiphy1.vdd); | 2211 | regulator_put(isp->isp_csiphy1.vdd); |
2212 | platform_set_drvdata(pdev, NULL); | 2212 | platform_set_drvdata(pdev, NULL); |
2213 | |||
2214 | mutex_destroy(&isp->isp_mutex); | ||
2213 | kfree(isp); | 2215 | kfree(isp); |
2214 | 2216 | ||
2215 | return ret; | 2217 | return ret; |