aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAlexander Shiyan <shc_work@mail.ru>2014-05-02 07:18:01 (GMT)
committerKamil Debski <k.debski@samsung.com>2014-05-19 09:57:48 (GMT)
commite2cacc2c7ab745b4af2689bd0aeedd306c23400e (patch)
treef00fa6c4e6a9dae656c9a69c75e33bf6d1521159
parentbfad441e40fca41fc011b5aee664e202df8467dc (diff)
media: mx2-emmaprp: Add missing mutex_destroy()for-3.16-2
This patch adds the missing mutex_destroy(), when the driver is removed. Signed-off-by: Alexander Shiyan <shc_work@mail.ru> Signed-off-by: Kamil Debski <k.debski@samsung.com>
-rw-r--r--drivers/media/platform/mx2_emmaprp.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/media/platform/mx2_emmaprp.c b/drivers/media/platform/mx2_emmaprp.c
index 85ce099..fa8f7ca 100644
--- a/drivers/media/platform/mx2_emmaprp.c
+++ b/drivers/media/platform/mx2_emmaprp.c
@@ -985,6 +985,8 @@ rel_vdev:
unreg_dev:
v4l2_device_unregister(&pcdev->v4l2_dev);
+ mutex_destroy(&pcdev->dev_mutex);
+
return ret;
}
@@ -998,6 +1000,7 @@ static int emmaprp_remove(struct platform_device *pdev)
v4l2_m2m_release(pcdev->m2m_dev);
vb2_dma_contig_cleanup_ctx(pcdev->alloc_ctx);
v4l2_device_unregister(&pcdev->v4l2_dev);
+ mutex_destroy(&pcdev->dev_mutex);
return 0;
}

Privacy Policy