diff options
author | Nicolas Pitre <nicolas.pitre@linaro.org> | 2015-07-29 01:43:20 +0200 |
---|---|---|
committer | Stephen Boyd <sboyd@codeaurora.org> | 2015-08-25 01:59:32 +0200 |
commit | e3ee276a5a62a1cd06de46aa0c808000d3fef00e (patch) | |
tree | 0b36813b9b0f3dfd99f91d0083e32fe09973529d /drivers/clk/versatile/clk-versatile.c | |
parent | clk: rockchip: register pll mux before pll itself (diff) | |
download | linux-e3ee276a5a62a1cd06de46aa0c808000d3fef00e.tar.xz linux-e3ee276a5a62a1cd06de46aa0c808000d3fef00e.zip |
drivers/clk: appropriate __init annotation for const data
Init data marked const should be annotated with __initconst for
correctness and not __initdata. This also fixes LTO builds that
otherwise fail with section mismatch errors.
Signed-off-by: Nicolas Pitre <nico@linaro.org>
Signed-off-by: Michael Turquette <mturquette@baylibre.com>
[sboyd@codeaurora.org: Dropped hunks that moved const char *
arrays to const char * const]
Signed-off-by: Stephen Boyd <sboyd@codeaurora.org>
Diffstat (limited to 'drivers/clk/versatile/clk-versatile.c')
-rw-r--r-- | drivers/clk/versatile/clk-versatile.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/clk/versatile/clk-versatile.c b/drivers/clk/versatile/clk-versatile.c index 71fa5da89afd..a89a927567e0 100644 --- a/drivers/clk/versatile/clk-versatile.c +++ b/drivers/clk/versatile/clk-versatile.c @@ -33,7 +33,7 @@ static const struct icst_params cp_auxosc_params = { .idx2s = icst525_idx2s, }; -static const struct clk_icst_desc __initdata cm_auxosc_desc = { +static const struct clk_icst_desc cm_auxosc_desc __initconst = { .params = &cp_auxosc_params, .vco_offset = 0x1c, .lock_offset = INTEGRATOR_HDR_LOCK_OFFSET, |