clk: atlas7: move variable-definition together
authorGuo Zeng <Guo.Zeng@csr.com>
Fri, 14 Aug 2015 01:11:02 +0000 (01:11 +0000)
committerMichael Turquette <mturquette@baylibre.com>
Tue, 29 Sep 2015 15:27:13 +0000 (08:27 -0700)
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>
drivers/clk/sirf/clk-atlas7.c

index a98e21fe773a364739f299aac651ccc4d2e18656..d34d1b3fcf7e324a0659e2efc602710b06f9258a 100644 (file)
 #define SIRFSOC_CLKC_LEAF_CLK_EN8_SET        0x0548
 
 
-static void __iomem *sirfsoc_clk_vbase;
-static struct clk_onecell_data clk_data;
-
-static const struct clk_div_table pll_div_table[] = {
-       { .val = 0, .div = 1 },
-       { .val = 1, .div = 2 },
-       { .val = 2, .div = 4 },
-       { .val = 3, .div = 8 },
-       { .val = 4, .div = 16 },
-       { .val = 5, .div = 32 },
-};
-
 struct clk_pll {
        struct clk_hw hw;
        u16 regofs;  /* register offset */
@@ -284,6 +272,18 @@ struct atlas7_reset_desc {
        spinlock_t *lock;
 };
 
+static void __iomem *sirfsoc_clk_vbase;
+static struct clk_onecell_data clk_data;
+
+static const struct clk_div_table pll_div_table[] = {
+       { .val = 0, .div = 1 },
+       { .val = 1, .div = 2 },
+       { .val = 2, .div = 4 },
+       { .val = 3, .div = 8 },
+       { .val = 4, .div = 16 },
+       { .val = 5, .div = 32 },
+};
+
 static DEFINE_SPINLOCK(cpupll_ctrl1_lock);
 static DEFINE_SPINLOCK(mempll_ctrl1_lock);
 static DEFINE_SPINLOCK(sys0pll_ctrl1_lock);
This page took 0.025582 seconds and 5 git commands to generate.