clk: mmp: add spin lock for clk-frac
authorChao Xie <chao.xie@marvell.com>
Fri, 31 Oct 2014 02:13:42 +0000 (10:13 +0800)
committerMichael Turquette <mturquette@linaro.org>
Thu, 13 Nov 2014 00:33:37 +0000 (16:33 -0800)
commit61256133919e76ea51e458c9713a9ee9d9ec4a67
tree5b6b31808520277a486cd68b039eba2eb0ac85aa
parent2bd1e256e45052f2244403f822fd85aa64a6aa00
clk: mmp: add spin lock for clk-frac

The register used by clk-frac may be shared with
other clocks.
So it needs to use spin lock to protect the register
access.

Signed-off-by: Chao Xie <chao.xie@marvell.com>
Acked-by: Haojian Zhuang <haojian.zhuang@gmail.com>
Signed-off-by: Michael Turquette <mturquette@linaro.org>
drivers/clk/mmp/clk-frac.c
drivers/clk/mmp/clk-mmp2.c
drivers/clk/mmp/clk-pxa168.c
drivers/clk/mmp/clk-pxa910.c
drivers/clk/mmp/clk.h