summaryrefslogtreecommitdiffstats
path: root/drivers/media/video/omap3isp/ispccdc.c
diff options
context:
space:
mode:
authorLaurent Pinchart <laurent.pinchart@ideasonboard.com>2011-09-22 22:09:26 +0200
committerMauro Carvalho Chehab <mchehab@redhat.com>2011-11-03 21:31:31 +0100
commited33ac8e0876a3016511ea0aaf9af1d965ee2c44 (patch)
treeb4b0c581a0ec831d3857d86205234b8924bd6ba5 /drivers/media/video/omap3isp/ispccdc.c
parent[media] omap3isp: Move *_init_entities() functions to the init/cleanup section (diff)
downloadlinux-ed33ac8e0876a3016511ea0aaf9af1d965ee2c44.tar.xz
linux-ed33ac8e0876a3016511ea0aaf9af1d965ee2c44.zip
[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/ispccdc.c')
-rw-r--r--drivers/media/video/omap3isp/ispccdc.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/media/video/omap3isp/ispccdc.c b/drivers/media/video/omap3isp/ispccdc.c
index c30cc59d7032..3a43be2f5452 100644
--- a/drivers/media/video/omap3isp/ispccdc.c
+++ b/drivers/media/video/omap3isp/ispccdc.c
@@ -2297,4 +2297,6 @@ void omap3isp_ccdc_cleanup(struct isp_device *isp)
if (ccdc->fpc.fpcaddr != 0)
omap_iommu_vfree(isp->domain, isp->iommu, ccdc->fpc.fpcaddr);
+
+ mutex_destroy(&ccdc->ioctl_lock);
}