diff options
author | Sachin Kamat <sachin.kamat@linaro.org> | 2013-08-12 05:14:02 -0400 |
---|---|---|
committer | Mike Turquette <mturquette@linaro.org> | 2013-08-27 21:34:20 -0400 |
commit | 682dfdc019a4a23aff93e63def077abf0d3f53ac (patch) | |
tree | 7723b8198c0db5c5a3832d9bf794651fbad44a9e /drivers/clk | |
parent | edead9f86c9eb19581dabecf5309a79583c3384f (diff) |
clk: armada-370: Fix incorrect placement of __initconst
__initconst should be placed between the variable name and equal
sign for the variable to be placed in the intended section.
Signed-off-by: Sachin Kamat <sachin.kamat@linaro.org>
Acked-by: Gregory Clement <gregory.clement@free-electrons.com>
Signed-off-by: Mike Turquette <mturquette@linaro.org>
Diffstat (limited to 'drivers/clk')
-rw-r--r-- | drivers/clk/mvebu/armada-370.c | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/drivers/clk/mvebu/armada-370.c b/drivers/clk/mvebu/armada-370.c index 079960e7c304..fc777bdc1886 100644 --- a/drivers/clk/mvebu/armada-370.c +++ b/drivers/clk/mvebu/armada-370.c | |||
@@ -32,13 +32,13 @@ | |||
32 | 32 | ||
33 | enum { A370_CPU_TO_NBCLK, A370_CPU_TO_HCLK, A370_CPU_TO_DRAMCLK }; | 33 | enum { A370_CPU_TO_NBCLK, A370_CPU_TO_HCLK, A370_CPU_TO_DRAMCLK }; |
34 | 34 | ||
35 | static const struct coreclk_ratio __initconst a370_coreclk_ratios[] = { | 35 | static const struct coreclk_ratio a370_coreclk_ratios[] __initconst = { |
36 | { .id = A370_CPU_TO_NBCLK, .name = "nbclk" }, | 36 | { .id = A370_CPU_TO_NBCLK, .name = "nbclk" }, |
37 | { .id = A370_CPU_TO_HCLK, .name = "hclk" }, | 37 | { .id = A370_CPU_TO_HCLK, .name = "hclk" }, |
38 | { .id = A370_CPU_TO_DRAMCLK, .name = "dramclk" }, | 38 | { .id = A370_CPU_TO_DRAMCLK, .name = "dramclk" }, |
39 | }; | 39 | }; |
40 | 40 | ||
41 | static const u32 __initconst a370_tclk_freqs[] = { | 41 | static const u32 a370_tclk_freqs[] __initconst = { |
42 | 16600000, | 42 | 16600000, |
43 | 20000000, | 43 | 20000000, |
44 | }; | 44 | }; |
@@ -52,7 +52,7 @@ static u32 __init a370_get_tclk_freq(void __iomem *sar) | |||
52 | return a370_tclk_freqs[tclk_freq_select]; | 52 | return a370_tclk_freqs[tclk_freq_select]; |
53 | } | 53 | } |
54 | 54 | ||
55 | static const u32 __initconst a370_cpu_freqs[] = { | 55 | static const u32 a370_cpu_freqs[] __initconst = { |
56 | 400000000, | 56 | 400000000, |
57 | 533000000, | 57 | 533000000, |
58 | 667000000, | 58 | 667000000, |
@@ -78,7 +78,7 @@ static u32 __init a370_get_cpu_freq(void __iomem *sar) | |||
78 | return cpu_freq; | 78 | return cpu_freq; |
79 | } | 79 | } |
80 | 80 | ||
81 | static const int __initconst a370_nbclk_ratios[32][2] = { | 81 | static const int a370_nbclk_ratios[32][2] __initconst = { |
82 | {0, 1}, {1, 2}, {2, 2}, {2, 2}, | 82 | {0, 1}, {1, 2}, {2, 2}, {2, 2}, |
83 | {1, 2}, {1, 2}, {1, 1}, {2, 3}, | 83 | {1, 2}, {1, 2}, {1, 1}, {2, 3}, |
84 | {0, 1}, {1, 2}, {2, 4}, {0, 1}, | 84 | {0, 1}, {1, 2}, {2, 4}, {0, 1}, |
@@ -89,7 +89,7 @@ static const int __initconst a370_nbclk_ratios[32][2] = { | |||
89 | {0, 1}, {0, 1}, {0, 1}, {0, 1}, | 89 | {0, 1}, {0, 1}, {0, 1}, {0, 1}, |
90 | }; | 90 | }; |
91 | 91 | ||
92 | static const int __initconst a370_hclk_ratios[32][2] = { | 92 | static const int a370_hclk_ratios[32][2] __initconst = { |
93 | {0, 1}, {1, 2}, {2, 6}, {2, 3}, | 93 | {0, 1}, {1, 2}, {2, 6}, {2, 3}, |
94 | {1, 3}, {1, 4}, {1, 2}, {2, 6}, | 94 | {1, 3}, {1, 4}, {1, 2}, {2, 6}, |
95 | {0, 1}, {1, 6}, {2, 10}, {0, 1}, | 95 | {0, 1}, {1, 6}, {2, 10}, {0, 1}, |
@@ -100,7 +100,7 @@ static const int __initconst a370_hclk_ratios[32][2] = { | |||
100 | {0, 1}, {0, 1}, {0, 1}, {0, 1}, | 100 | {0, 1}, {0, 1}, {0, 1}, {0, 1}, |
101 | }; | 101 | }; |
102 | 102 | ||
103 | static const int __initconst a370_dramclk_ratios[32][2] = { | 103 | static const int a370_dramclk_ratios[32][2] __initconst = { |
104 | {0, 1}, {1, 2}, {2, 3}, {2, 3}, | 104 | {0, 1}, {1, 2}, {2, 3}, {2, 3}, |
105 | {1, 3}, {1, 2}, {1, 2}, {2, 6}, | 105 | {1, 3}, {1, 2}, {1, 2}, {2, 6}, |
106 | {0, 1}, {1, 3}, {2, 5}, {0, 1}, | 106 | {0, 1}, {1, 3}, {2, 5}, {0, 1}, |
@@ -152,7 +152,7 @@ CLK_OF_DECLARE(a370_core_clk, "marvell,armada-370-core-clock", | |||
152 | * Clock Gating Control | 152 | * Clock Gating Control |
153 | */ | 153 | */ |
154 | 154 | ||
155 | static const struct clk_gating_soc_desc __initconst a370_gating_desc[] = { | 155 | static const struct clk_gating_soc_desc a370_gating_desc[] __initconst = { |
156 | { "audio", NULL, 0, 0 }, | 156 | { "audio", NULL, 0, 0 }, |
157 | { "pex0_en", NULL, 1, 0 }, | 157 | { "pex0_en", NULL, 1, 0 }, |
158 | { "pex1_en", NULL, 2, 0 }, | 158 | { "pex1_en", NULL, 2, 0 }, |