phy: exynos-mipi-video: Use spin_lock to protct state->regmap rmw operations
authorAxel Lin <axel.lin@ingics.com>
Fri, 27 Feb 2015 03:50:57 +0000 (11:50 +0800)
committerKishon Vijay Abraham I <kishon@ti.com>
Wed, 11 Mar 2015 10:21:06 +0000 (15:51 +0530)
commitaf69decc7ca80fa24c77a5a00234f1cd2a957de8
tree8f03178f14090d519d6e01b5026159d8a10f2955
parentcfd565d1e102941ec61b2a33c3c474961300a6fb
phy: exynos-mipi-video: Use spin_lock to protct state->regmap rmw operations

The state->regmap is initialized by devm_regmap_init_mmio().
So it's fine to use spin_lock rather than mutex to protct state->regmap rmw
operations.

Signed-off-by: Axel Lin <axel.lin@ingics.com>
Acked-by: Sylwester Nawrocki <s.nawrocki@samsung.com>
Tested-by: Sylwester Nawrocki <s.nawrocki@samsung.com>
[Julia.Lawall@lip6.fr: Found an issue with the original patch w.r.t unbalanced
 spin_lock call]
Signed-off-by: Julia Lawall <Julia.Lawall@lip6.fr>
Signed-off-by: Kishon Vijay Abraham I <kishon@ti.com>
drivers/phy/phy-exynos-mipi-video.c