提交 ed33ac8e 编写于 作者: L Laurent Pinchart 提交者: Mauro Carvalho Chehab

[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: NLaurent Pinchart <laurent.pinchart@ideasonboard.com>
Signed-off-by: NMauro Carvalho Chehab <mchehab@redhat.com>
上级 39099d09
...@@ -2210,6 +2210,8 @@ static int isp_probe(struct platform_device *pdev) ...@@ -2210,6 +2210,8 @@ static int isp_probe(struct platform_device *pdev)
regulator_put(isp->isp_csiphy2.vdd); regulator_put(isp->isp_csiphy2.vdd);
regulator_put(isp->isp_csiphy1.vdd); regulator_put(isp->isp_csiphy1.vdd);
platform_set_drvdata(pdev, NULL); platform_set_drvdata(pdev, NULL);
mutex_destroy(&isp->isp_mutex);
kfree(isp); kfree(isp);
return ret; return ret;
......
...@@ -2297,4 +2297,6 @@ void omap3isp_ccdc_cleanup(struct isp_device *isp) ...@@ -2297,4 +2297,6 @@ void omap3isp_ccdc_cleanup(struct isp_device *isp)
if (ccdc->fpc.fpcaddr != 0) if (ccdc->fpc.fpcaddr != 0)
omap_iommu_vfree(isp->domain, isp->iommu, ccdc->fpc.fpcaddr); omap_iommu_vfree(isp->domain, isp->iommu, ccdc->fpc.fpcaddr);
mutex_destroy(&ccdc->ioctl_lock);
} }
...@@ -1087,6 +1087,7 @@ int omap3isp_stat_init(struct ispstat *stat, const char *name, ...@@ -1087,6 +1087,7 @@ int omap3isp_stat_init(struct ispstat *stat, const char *name,
void omap3isp_stat_cleanup(struct ispstat *stat) void omap3isp_stat_cleanup(struct ispstat *stat)
{ {
media_entity_cleanup(&stat->subdev.entity); media_entity_cleanup(&stat->subdev.entity);
mutex_destroy(&stat->ioctl_lock);
isp_stat_bufs_free(stat); isp_stat_bufs_free(stat);
kfree(stat->buf); kfree(stat->buf);
} }
...@@ -1328,6 +1328,8 @@ int omap3isp_video_init(struct isp_video *video, const char *name) ...@@ -1328,6 +1328,8 @@ int omap3isp_video_init(struct isp_video *video, const char *name)
void omap3isp_video_cleanup(struct isp_video *video) void omap3isp_video_cleanup(struct isp_video *video)
{ {
media_entity_cleanup(&video->video.entity); media_entity_cleanup(&video->video.entity);
mutex_destroy(&video->stream_lock);
mutex_destroy(&video->mutex);
} }
int omap3isp_video_register(struct isp_video *video, struct v4l2_device *vdev) int omap3isp_video_register(struct isp_video *video, struct v4l2_device *vdev)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册