diff options
author | Guo Zeng <Guo.Zeng@csr.com> | 2015-08-13 21:11:02 -0400 |
---|---|---|
committer | Michael Turquette <mturquette@baylibre.com> | 2015-09-29 11:27:13 -0400 |
commit | 1f57d1d88cb2a89466e1782e1c2fd358771ea4c5 (patch) | |
tree | 6eaa5c4f5f8af962cf8743e2a070d16659f687b4 | |
parent | 6f83d30a370851f8e47b91d0a7a2adc3d3c3ad8a (diff) |
clk: atlas7: move variable-definition together
re-order the codes more reasonable by moving variable-definition
together.
Signed-off-by: Guo Zeng <Guo.Zeng@csr.com>
Signed-off-by: Barry Song <Baohua.Song@csr.com>
Signed-off-by: Michael Turquette <mturquette@baylibre.com>
-rw-r--r-- | drivers/clk/sirf/clk-atlas7.c | 24 |
1 files changed, 12 insertions, 12 deletions
diff --git a/drivers/clk/sirf/clk-atlas7.c b/drivers/clk/sirf/clk-atlas7.c index a98e21fe773a..d34d1b3fcf7e 100644 --- a/drivers/clk/sirf/clk-atlas7.c +++ b/drivers/clk/sirf/clk-atlas7.c | |||
@@ -206,18 +206,6 @@ | |||
206 | #define SIRFSOC_CLKC_LEAF_CLK_EN8_SET 0x0548 | 206 | #define SIRFSOC_CLKC_LEAF_CLK_EN8_SET 0x0548 |
207 | 207 | ||
208 | 208 | ||
209 | static void __iomem *sirfsoc_clk_vbase; | ||
210 | static struct clk_onecell_data clk_data; | ||
211 | |||
212 | static const struct clk_div_table pll_div_table[] = { | ||
213 | { .val = 0, .div = 1 }, | ||
214 | { .val = 1, .div = 2 }, | ||
215 | { .val = 2, .div = 4 }, | ||
216 | { .val = 3, .div = 8 }, | ||
217 | { .val = 4, .div = 16 }, | ||
218 | { .val = 5, .div = 32 }, | ||
219 | }; | ||
220 | |||
221 | struct clk_pll { | 209 | struct clk_pll { |
222 | struct clk_hw hw; | 210 | struct clk_hw hw; |
223 | u16 regofs; /* register offset */ | 211 | u16 regofs; /* register offset */ |
@@ -284,6 +272,18 @@ struct atlas7_reset_desc { | |||
284 | spinlock_t *lock; | 272 | spinlock_t *lock; |
285 | }; | 273 | }; |
286 | 274 | ||
275 | static void __iomem *sirfsoc_clk_vbase; | ||
276 | static struct clk_onecell_data clk_data; | ||
277 | |||
278 | static const struct clk_div_table pll_div_table[] = { | ||
279 | { .val = 0, .div = 1 }, | ||
280 | { .val = 1, .div = 2 }, | ||
281 | { .val = 2, .div = 4 }, | ||
282 | { .val = 3, .div = 8 }, | ||
283 | { .val = 4, .div = 16 }, | ||
284 | { .val = 5, .div = 32 }, | ||
285 | }; | ||
286 | |||
287 | static DEFINE_SPINLOCK(cpupll_ctrl1_lock); | 287 | static DEFINE_SPINLOCK(cpupll_ctrl1_lock); |
288 | static DEFINE_SPINLOCK(mempll_ctrl1_lock); | 288 | static DEFINE_SPINLOCK(mempll_ctrl1_lock); |
289 | static DEFINE_SPINLOCK(sys0pll_ctrl1_lock); | 289 | static DEFINE_SPINLOCK(sys0pll_ctrl1_lock); |