summaryrefslogtreecommitdiffstats
path: root/drivers/clk/sirf
diff options
context:
space:
mode:
authorGuo Zeng <Guo.Zeng@csr.com>2015-08-14 01:11:02 +0000
committerMichael Turquette <mturquette@baylibre.com>2015-09-29 08:27:13 -0700
commit1f57d1d88cb2a89466e1782e1c2fd358771ea4c5 (patch)
tree6eaa5c4f5f8af962cf8743e2a070d16659f687b4 /drivers/clk/sirf
parent6f83d30a370851f8e47b91d0a7a2adc3d3c3ad8a (diff)
downloadtalos-op-linux-1f57d1d88cb2a89466e1782e1c2fd358771ea4c5.tar.gz
talos-op-linux-1f57d1d88cb2a89466e1782e1c2fd358771ea4c5.zip
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>
Diffstat (limited to 'drivers/clk/sirf')
-rw-r--r--drivers/clk/sirf/clk-atlas7.c24
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 @@
#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);
OpenPOWER on IntegriCloud