diff options
author | Arnd Bergmann <arnd@arndb.de> | 2018-02-20 10:15:21 -0500 |
---|---|---|
committer | Stephen Boyd <sboyd@kernel.org> | 2018-03-16 18:57:53 -0400 |
commit | df934cbcbff7afbc024bf05f02615917c61f6470 (patch) | |
tree | 2aa4045d53c2fe6de6ca16f8c21a886a697254ec | |
parent | a91f77ef155e90b738c0d716844e31e136e9c6b4 (diff) |
clk: hisilicon: mark wdt_mux_p[] as const
The symbol is in the __initconst section but not marked init, which
caused a warning when building with LTO.
This makes it 'const' as was obviously intended.
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Fixes: c80dfd9bf54e ("clk: hisilicon: add CRG driver for Hi3516CV300 SoC")
Signed-off-by: Stephen Boyd <sboyd@kernel.org>
-rw-r--r-- | drivers/clk/hisilicon/crg-hi3516cv300.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/clk/hisilicon/crg-hi3516cv300.c b/drivers/clk/hisilicon/crg-hi3516cv300.c index 2007123832bb..53450b651e4c 100644 --- a/drivers/clk/hisilicon/crg-hi3516cv300.c +++ b/drivers/clk/hisilicon/crg-hi3516cv300.c | |||
@@ -204,7 +204,7 @@ static const struct hisi_crg_funcs hi3516cv300_crg_funcs = { | |||
204 | /* hi3516CV300 sysctrl CRG */ | 204 | /* hi3516CV300 sysctrl CRG */ |
205 | #define HI3516CV300_SYSCTRL_NR_CLKS 16 | 205 | #define HI3516CV300_SYSCTRL_NR_CLKS 16 |
206 | 206 | ||
207 | static const char *wdt_mux_p[] __initconst = { "3m", "apb" }; | 207 | static const char *const wdt_mux_p[] __initconst = { "3m", "apb" }; |
208 | static u32 wdt_mux_table[] = {0, 1}; | 208 | static u32 wdt_mux_table[] = {0, 1}; |
209 | 209 | ||
210 | static const struct hisi_mux_clock hi3516cv300_sysctrl_mux_clks[] = { | 210 | static const struct hisi_mux_clock hi3516cv300_sysctrl_mux_clks[] = { |