Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

clk: hi3620: Move const initdata into correct code section

Use __initconst instead of __initdata for constant init data.

Signed-off-by: Bintian Wang <bintian.wang@huawei.com>
Acked-by: Haojian Zhuang <haojian.zhuang@linaro.org>
Signed-off-by: Michael Turquette <mturquette@linaro.org>

authored by

Bintian Wang and committed by
Michael Turquette
7f615dd4 6793b3cd

+35 -35
+35 -35
drivers/clk/hisilicon/clk-hi3620.c
··· 38 38 #include "clk.h" 39 39 40 40 /* clock parent list */ 41 - static const char *timer0_mux_p[] __initdata = { "osc32k", "timerclk01", }; 42 - static const char *timer1_mux_p[] __initdata = { "osc32k", "timerclk01", }; 43 - static const char *timer2_mux_p[] __initdata = { "osc32k", "timerclk23", }; 44 - static const char *timer3_mux_p[] __initdata = { "osc32k", "timerclk23", }; 45 - static const char *timer4_mux_p[] __initdata = { "osc32k", "timerclk45", }; 46 - static const char *timer5_mux_p[] __initdata = { "osc32k", "timerclk45", }; 47 - static const char *timer6_mux_p[] __initdata = { "osc32k", "timerclk67", }; 48 - static const char *timer7_mux_p[] __initdata = { "osc32k", "timerclk67", }; 49 - static const char *timer8_mux_p[] __initdata = { "osc32k", "timerclk89", }; 50 - static const char *timer9_mux_p[] __initdata = { "osc32k", "timerclk89", }; 51 - static const char *uart0_mux_p[] __initdata = { "osc26m", "pclk", }; 52 - static const char *uart1_mux_p[] __initdata = { "osc26m", "pclk", }; 53 - static const char *uart2_mux_p[] __initdata = { "osc26m", "pclk", }; 54 - static const char *uart3_mux_p[] __initdata = { "osc26m", "pclk", }; 55 - static const char *uart4_mux_p[] __initdata = { "osc26m", "pclk", }; 56 - static const char *spi0_mux_p[] __initdata = { "osc26m", "rclk_cfgaxi", }; 57 - static const char *spi1_mux_p[] __initdata = { "osc26m", "rclk_cfgaxi", }; 58 - static const char *spi2_mux_p[] __initdata = { "osc26m", "rclk_cfgaxi", }; 41 + static const char *timer0_mux_p[] __initconst = { "osc32k", "timerclk01", }; 42 + static const char *timer1_mux_p[] __initconst = { "osc32k", "timerclk01", }; 43 + static const char *timer2_mux_p[] __initconst = { "osc32k", "timerclk23", }; 44 + static const char *timer3_mux_p[] __initconst = { "osc32k", "timerclk23", }; 45 + static const char *timer4_mux_p[] __initconst = { "osc32k", "timerclk45", }; 46 + static const char *timer5_mux_p[] __initconst = { "osc32k", "timerclk45", }; 47 + static const char *timer6_mux_p[] __initconst = { "osc32k", "timerclk67", }; 48 + static const char *timer7_mux_p[] __initconst = { "osc32k", "timerclk67", }; 49 + static const char *timer8_mux_p[] __initconst = { "osc32k", "timerclk89", }; 50 + static const char *timer9_mux_p[] __initconst = { "osc32k", "timerclk89", }; 51 + static const char *uart0_mux_p[] __initconst = { "osc26m", "pclk", }; 52 + static const char *uart1_mux_p[] __initconst = { "osc26m", "pclk", }; 53 + static const char *uart2_mux_p[] __initconst = { "osc26m", "pclk", }; 54 + static const char *uart3_mux_p[] __initconst = { "osc26m", "pclk", }; 55 + static const char *uart4_mux_p[] __initconst = { "osc26m", "pclk", }; 56 + static const char *spi0_mux_p[] __initconst = { "osc26m", "rclk_cfgaxi", }; 57 + static const char *spi1_mux_p[] __initconst = { "osc26m", "rclk_cfgaxi", }; 58 + static const char *spi2_mux_p[] __initconst = { "osc26m", "rclk_cfgaxi", }; 59 59 /* share axi parent */ 60 - static const char *saxi_mux_p[] __initdata = { "armpll3", "armpll2", }; 61 - static const char *pwm0_mux_p[] __initdata = { "osc32k", "osc26m", }; 62 - static const char *pwm1_mux_p[] __initdata = { "osc32k", "osc26m", }; 63 - static const char *sd_mux_p[] __initdata = { "armpll2", "armpll3", }; 64 - static const char *mmc1_mux_p[] __initdata = { "armpll2", "armpll3", }; 65 - static const char *mmc1_mux2_p[] __initdata = { "osc26m", "mmc1_div", }; 66 - static const char *g2d_mux_p[] __initdata = { "armpll2", "armpll3", }; 67 - static const char *venc_mux_p[] __initdata = { "armpll2", "armpll3", }; 68 - static const char *vdec_mux_p[] __initdata = { "armpll2", "armpll3", }; 69 - static const char *vpp_mux_p[] __initdata = { "armpll2", "armpll3", }; 70 - static const char *edc0_mux_p[] __initdata = { "armpll2", "armpll3", }; 71 - static const char *ldi0_mux_p[] __initdata = { "armpll2", "armpll4", 60 + static const char *saxi_mux_p[] __initconst = { "armpll3", "armpll2", }; 61 + static const char *pwm0_mux_p[] __initconst = { "osc32k", "osc26m", }; 62 + static const char *pwm1_mux_p[] __initconst = { "osc32k", "osc26m", }; 63 + static const char *sd_mux_p[] __initconst = { "armpll2", "armpll3", }; 64 + static const char *mmc1_mux_p[] __initconst = { "armpll2", "armpll3", }; 65 + static const char *mmc1_mux2_p[] __initconst = { "osc26m", "mmc1_div", }; 66 + static const char *g2d_mux_p[] __initconst = { "armpll2", "armpll3", }; 67 + static const char *venc_mux_p[] __initconst = { "armpll2", "armpll3", }; 68 + static const char *vdec_mux_p[] __initconst = { "armpll2", "armpll3", }; 69 + static const char *vpp_mux_p[] __initconst = { "armpll2", "armpll3", }; 70 + static const char *edc0_mux_p[] __initconst = { "armpll2", "armpll3", }; 71 + static const char *ldi0_mux_p[] __initconst = { "armpll2", "armpll4", 72 72 "armpll3", "armpll5", }; 73 - static const char *edc1_mux_p[] __initdata = { "armpll2", "armpll3", }; 74 - static const char *ldi1_mux_p[] __initdata = { "armpll2", "armpll4", 73 + static const char *edc1_mux_p[] __initconst = { "armpll2", "armpll3", }; 74 + static const char *ldi1_mux_p[] __initconst = { "armpll2", "armpll4", 75 75 "armpll3", "armpll5", }; 76 - static const char *rclk_hsic_p[] __initdata = { "armpll3", "armpll2", }; 77 - static const char *mmc2_mux_p[] __initdata = { "armpll2", "armpll3", }; 78 - static const char *mmc3_mux_p[] __initdata = { "armpll2", "armpll3", }; 76 + static const char *rclk_hsic_p[] __initconst = { "armpll3", "armpll2", }; 77 + static const char *mmc2_mux_p[] __initconst = { "armpll2", "armpll3", }; 78 + static const char *mmc3_mux_p[] __initconst = { "armpll2", "armpll3", }; 79 79 80 80 81 81 /* fixed rate clocks */