diff options
author | Sachin Kamat <sachin.kamat@linaro.org> | 2013-08-12 05:14:01 -0400 |
---|---|---|
committer | Mike Turquette <mturquette@linaro.org> | 2013-08-27 21:34:09 -0400 |
commit | edead9f86c9eb19581dabecf5309a79583c3384f (patch) | |
tree | d6517b0132a05384ef9324950af74eb229a5f9d0 /drivers/clk/clk-u300.c | |
parent | 330d83b1fb255963dcfd20cbdd0be34c0ed7da89 (diff) |
clk: u300: 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.
While at it also make 'u300_clk_lookup' static as it is used only
in this file.
Signed-off-by: Sachin Kamat <sachin.kamat@linaro.org>
Acked-by: Linus Walleij <linus.walleij@linaro.org>
Signed-off-by: Mike Turquette <mturquette@linaro.org>
Diffstat (limited to 'drivers/clk/clk-u300.c')
-rw-r--r-- | drivers/clk/clk-u300.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/clk/clk-u300.c b/drivers/clk/clk-u300.c index 8774e058cb6c..3efbdd078d14 100644 --- a/drivers/clk/clk-u300.c +++ b/drivers/clk/clk-u300.c | |||
@@ -746,7 +746,7 @@ struct u300_clock { | |||
746 | u16 clk_val; | 746 | u16 clk_val; |
747 | }; | 747 | }; |
748 | 748 | ||
749 | struct u300_clock const __initconst u300_clk_lookup[] = { | 749 | static struct u300_clock const u300_clk_lookup[] __initconst = { |
750 | { | 750 | { |
751 | .type = U300_CLK_TYPE_REST, | 751 | .type = U300_CLK_TYPE_REST, |
752 | .id = 3, | 752 | .id = 3, |
@@ -1151,7 +1151,7 @@ static void __init of_u300_syscon_mclk_init(struct device_node *np) | |||
1151 | of_clk_add_provider(np, of_clk_src_simple_get, clk); | 1151 | of_clk_add_provider(np, of_clk_src_simple_get, clk); |
1152 | } | 1152 | } |
1153 | 1153 | ||
1154 | static const __initconst struct of_device_id u300_clk_match[] = { | 1154 | static const struct of_device_id u300_clk_match[] __initconst = { |
1155 | { | 1155 | { |
1156 | .compatible = "fixed-clock", | 1156 | .compatible = "fixed-clock", |
1157 | .data = of_fixed_clk_setup, | 1157 | .data = of_fixed_clk_setup, |