summaryrefslogtreecommitdiff
path: root/drivers/media
diff options
context:
space:
mode:
authorSylwester Nawrocki <s.nawrocki@samsung.com>2013-05-31 11:37:21 -0300
committerChanho Park <chanho61.park@samsung.com>2014-03-20 17:32:33 +0900
commite0ebbf894d82333431e375d67641c5b47fa29c30 (patch)
tree6f17d1a5966780aa3acc6ca66ea64219cdcd3be3 /drivers/media
parenta4584bbdac4673ead2e170a794df0b7bf9c8edd1 (diff)
downloadlinux-3.10-e0ebbf894d82333431e375d67641c5b47fa29c30.tar.gz
linux-3.10-e0ebbf894d82333431e375d67641c5b47fa29c30.tar.bz2
linux-3.10-e0ebbf894d82333431e375d67641c5b47fa29c30.zip
[media] exynos4-is: Do not use asynchronous runtime PM in release fop
Use pm_runtime_put_sync() instead of pm_runtime_put() to avoid races in handling the 'state' bit flags when the fimc-capture drivers' runtime_resume callback is called from the PM workqueue. Signed-off-by: Sylwester Nawrocki <s.nawrocki@samsung.com> Signed-off-by: Kyungmin Park <kyungmin.park@samsung.com> Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
Diffstat (limited to 'drivers/media')
-rw-r--r--drivers/media/platform/exynos4-is/fimc-capture.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/media/platform/exynos4-is/fimc-capture.c b/drivers/media/platform/exynos4-is/fimc-capture.c
index b6055d2b09d..b2f9581f1a8 100644
--- a/drivers/media/platform/exynos4-is/fimc-capture.c
+++ b/drivers/media/platform/exynos4-is/fimc-capture.c
@@ -496,7 +496,7 @@ static int fimc_capture_open(struct file *file)
ret = v4l2_fh_open(file);
if (ret) {
- pm_runtime_put(&fimc->pdev->dev);
+ pm_runtime_put_sync(&fimc->pdev->dev);
goto unlock;
}
@@ -564,7 +564,7 @@ static int fimc_capture_release(struct file *file)
fimc_md_graph_unlock(&vc->ve);
}
- pm_runtime_put(&fimc->pdev->dev);
+ pm_runtime_put_sync(&fimc->pdev->dev);
mutex_unlock(&fimc->lock);
return ret;