Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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>

authored by

Guo Zeng and committed by
Michael Turquette
1f57d1d8 6f83d30a

+12 -12
+12 -12
drivers/clk/sirf/clk-atlas7.c
··· 206 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 209 struct clk_pll { 222 210 struct clk_hw hw; 223 211 u16 regofs; /* register offset */ ··· 270 282 u32 rst_ofs; 271 283 u8 rst_bit; 272 284 spinlock_t *lock; 285 + }; 286 + 287 + static void __iomem *sirfsoc_clk_vbase; 288 + static struct clk_onecell_data clk_data; 289 + 290 + static const struct clk_div_table pll_div_table[] = { 291 + { .val = 0, .div = 1 }, 292 + { .val = 1, .div = 2 }, 293 + { .val = 2, .div = 4 }, 294 + { .val = 3, .div = 8 }, 295 + { .val = 4, .div = 16 }, 296 + { .val = 5, .div = 32 }, 273 297 }; 274 298 275 299 static DEFINE_SPINLOCK(cpupll_ctrl1_lock);