@@ -107,25 +107,25 @@ static const struct hisi_fixed_rate_clock hi3559av100_fixed_rate_clks_crg[] = {
107
107
};
108
108
109
109
110
- static const char * fmc_mux_p [] __initconst = {
110
+ static const char * fmc_mux_p [] = {
111
111
"24m" , "75m" , "125m" , "150m" , "200m" , "250m" , "300m" , "400m"
112
112
};
113
113
114
- static const char * mmc_mux_p [] __initconst = {
114
+ static const char * mmc_mux_p [] = {
115
115
"100k" , "25m" , "49p5m" , "99m" , "187p5m" , "150m" , "198m" , "400k"
116
116
};
117
117
118
- static const char * sysapb_mux_p [] __initconst = {
118
+ static const char * sysapb_mux_p [] = {
119
119
"24m" , "50m" ,
120
120
};
121
121
122
- static const char * sysbus_mux_p [] __initconst = {
122
+ static const char * sysbus_mux_p [] = {
123
123
"24m" , "300m"
124
124
};
125
125
126
- static const char * uart_mux_p [] __initconst = { "50m" , "24m" , "3m" };
126
+ static const char * uart_mux_p [] = { "50m" , "24m" , "3m" };
127
127
128
- static const char * a73_clksel_mux_p [] __initconst = {
128
+ static const char * a73_clksel_mux_p [] = {
129
129
"24m" , "apll" , "1000m"
130
130
};
131
131
@@ -136,7 +136,7 @@ static const u32 sysbus_mux_table[] = { 0, 1 };
136
136
static const u32 uart_mux_table [] = { 0 , 1 , 2 };
137
137
static const u32 a73_clksel_mux_table [] = { 0 , 1 , 2 };
138
138
139
- static struct hisi_mux_clock hi3559av100_mux_clks_crg [] __initdata = {
139
+ static struct hisi_mux_clock hi3559av100_mux_clks_crg [] = {
140
140
{
141
141
HI3559AV100_FMC_MUX , "fmc_mux" , fmc_mux_p , ARRAY_SIZE (fmc_mux_p ),
142
142
CLK_SET_RATE_PARENT , 0x170 , 2 , 3 , 0 , fmc_mux_table ,
@@ -181,7 +181,7 @@ static struct hisi_mux_clock hi3559av100_mux_clks_crg[] __initdata = {
181
181
},
182
182
};
183
183
184
- static struct hisi_gate_clock hi3559av100_gate_clks [] __initdata = {
184
+ static struct hisi_gate_clock hi3559av100_gate_clks [] = {
185
185
{
186
186
HI3559AV100_FMC_CLK , "clk_fmc" , "fmc_mux" ,
187
187
CLK_SET_RATE_PARENT , 0x170 , 1 , 0 ,
@@ -336,7 +336,7 @@ static struct hisi_gate_clock hi3559av100_gate_clks[] __initdata = {
336
336
},
337
337
};
338
338
339
- static struct hi3559av100_pll_clock hi3559av100_pll_clks [] __initdata = {
339
+ static struct hi3559av100_pll_clock hi3559av100_pll_clks [] = {
340
340
{
341
341
HI3559AV100_APLL_CLK , "apll" , NULL , 0x0 , 0 , 24 , 24 , 3 , 28 , 3 ,
342
342
0x4 , 0 , 12 , 12 , 6
@@ -502,7 +502,7 @@ static void hisi_clk_register_pll(struct hi3559av100_pll_clock *clks,
502
502
}
503
503
}
504
504
505
- static __init struct hisi_clock_data * hi3559av100_clk_register (
505
+ static struct hisi_clock_data * hi3559av100_clk_register (
506
506
struct platform_device * pdev )
507
507
{
508
508
struct hisi_clock_data * clk_data ;
@@ -549,7 +549,7 @@ static __init struct hisi_clock_data *hi3559av100_clk_register(
549
549
return ERR_PTR (ret );
550
550
}
551
551
552
- static __init void hi3559av100_clk_unregister (struct platform_device * pdev )
552
+ static void hi3559av100_clk_unregister (struct platform_device * pdev )
553
553
{
554
554
struct hisi_crg_dev * crg = platform_get_drvdata (pdev );
555
555
@@ -568,8 +568,7 @@ static const struct hisi_crg_funcs hi3559av100_crg_funcs = {
568
568
.unregister_clks = hi3559av100_clk_unregister ,
569
569
};
570
570
571
- static struct hisi_fixed_rate_clock hi3559av100_shub_fixed_rate_clks []
572
- __initdata = {
571
+ static struct hisi_fixed_rate_clock hi3559av100_shub_fixed_rate_clks [] = {
573
572
{ HI3559AV100_SHUB_SOURCE_SOC_24M , "clk_source_24M" , NULL , 0 , 24000000UL , },
574
573
{ HI3559AV100_SHUB_SOURCE_SOC_200M , "clk_source_200M" , NULL , 0 , 200000000UL , },
575
574
{ HI3559AV100_SHUB_SOURCE_SOC_300M , "clk_source_300M" , NULL , 0 , 300000000UL , },
@@ -587,16 +586,16 @@ static struct hisi_fixed_rate_clock hi3559av100_shub_fixed_rate_clks[]
587
586
588
587
/* shub mux clk */
589
588
static u32 shub_source_clk_mux_table [] = {0 , 1 , 2 , 3 };
590
- static const char * shub_source_clk_mux_p [] __initconst = {
589
+ static const char * shub_source_clk_mux_p [] = {
591
590
"clk_source_24M" , "clk_source_200M" , "clk_source_300M" , "clk_source_PLL"
592
591
};
593
592
594
593
static u32 shub_uart_source_clk_mux_table [] = {0 , 1 , 2 , 3 };
595
- static const char * shub_uart_source_clk_mux_p [] __initconst = {
594
+ static const char * shub_uart_source_clk_mux_p [] = {
596
595
"clk_uart_32K" , "clk_uart_div_clk" , "clk_uart_div_clk" , "clk_source_24M"
597
596
};
598
597
599
- static struct hisi_mux_clock hi3559av100_shub_mux_clks [] __initdata = {
598
+ static struct hisi_mux_clock hi3559av100_shub_mux_clks [] = {
600
599
{
601
600
HI3559AV100_SHUB_SOURCE_CLK , "shub_clk" , shub_source_clk_mux_p ,
602
601
ARRAY_SIZE (shub_source_clk_mux_p ),
@@ -615,7 +614,7 @@ static struct hisi_mux_clock hi3559av100_shub_mux_clks[] __initdata = {
615
614
static struct clk_div_table shub_spi_clk_table [] = {{0 , 8 }, {1 , 4 }, {2 , 2 }};
616
615
static struct clk_div_table shub_uart_div_clk_table [] = {{1 , 8 }, {2 , 4 }};
617
616
618
- static struct hisi_divider_clock hi3559av100_shub_div_clks [] __initdata = {
617
+ static struct hisi_divider_clock hi3559av100_shub_div_clks [] = {
619
618
{ HI3559AV100_SHUB_SPI_SOURCE_CLK , "clk_spi_clk" , "shub_clk" , 0 , 0x20 , 24 , 2 ,
620
619
CLK_DIVIDER_ALLOW_ZERO , shub_spi_clk_table ,
621
620
},
@@ -625,7 +624,7 @@ static struct hisi_divider_clock hi3559av100_shub_div_clks[] __initdata = {
625
624
};
626
625
627
626
/* shub gate clk */
628
- static struct hisi_gate_clock hi3559av100_shub_gate_clks [] __initdata = {
627
+ static struct hisi_gate_clock hi3559av100_shub_gate_clks [] = {
629
628
{
630
629
HI3559AV100_SHUB_SPI0_CLK , "clk_shub_spi0" , "clk_spi_clk" ,
631
630
0 , 0x20 , 1 , 0 ,
@@ -697,7 +696,7 @@ static int hi3559av100_shub_default_clk_set(void)
697
696
return 0 ;
698
697
}
699
698
700
- static __init struct hisi_clock_data * hi3559av100_shub_clk_register (
699
+ static struct hisi_clock_data * hi3559av100_shub_clk_register (
701
700
struct platform_device * pdev )
702
701
{
703
702
struct hisi_clock_data * clk_data = NULL ;
@@ -751,7 +750,7 @@ static __init struct hisi_clock_data *hi3559av100_shub_clk_register(
751
750
return ERR_PTR (ret );
752
751
}
753
752
754
- static __init void hi3559av100_shub_clk_unregister (struct platform_device * pdev )
753
+ static void hi3559av100_shub_clk_unregister (struct platform_device * pdev )
755
754
{
756
755
struct hisi_crg_dev * crg = platform_get_drvdata (pdev );
757
756
0 commit comments