clk: mvebu: share locks between gate clocks
authorMike Turquette <mturquette@linaro.org>
Wed, 27 Aug 2014 22:36:37 +0000 (15:36 -0700)
committerMike Turquette <mturquette@linaro.org>
Tue, 2 Sep 2014 00:43:52 +0000 (17:43 -0700)
Refactor mvebu_clk_gating_setup() to use a common spinlock instead of a
unique lock for every instance of a struct clk_gating_ctrl object. This
will be used later for a separate mux clock type that shares a register
with gate clock types and needs to use the same lock to protect access
to the register.

Cc: Andrew Lunn <andrew@lunn.ch>
Tested-by: Andrew Lunn <andrew@lunn.ch>
Signed-off-by: Mike Turquette <mturquette@linaro.org>

No differences found