Skip to content

Commit 3aa9a09

Browse files
committed
clk: mediatek: mt7988-infracfg: drop initconst
The initconst statement causes memory to be free after init resulting in non-working devices (e.g. i2c on BPI-R4). Signed-off-by: Frank Wunderlich <frank-w@public-files.de>
1 parent 97935c0 commit 3aa9a09

1 file changed

Lines changed: 10 additions & 10 deletions

File tree

drivers/clk/mediatek/clk-mt7988-infracfg.c

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -21,36 +21,36 @@
2121

2222
static DEFINE_SPINLOCK(mt7988_clk_lock);
2323

24-
static const char *const infra_mux_uart0_parents[] __initconst = { "csw_infra_f26m_sel",
24+
static const char *const infra_mux_uart0_parents[] = { "csw_infra_f26m_sel",
2525
"uart_sel" };
2626

27-
static const char *const infra_mux_uart1_parents[] __initconst = { "csw_infra_f26m_sel",
27+
static const char *const infra_mux_uart1_parents[] = { "csw_infra_f26m_sel",
2828
"uart_sel" };
2929

30-
static const char *const infra_mux_uart2_parents[] __initconst = { "csw_infra_f26m_sel",
30+
static const char *const infra_mux_uart2_parents[] = { "csw_infra_f26m_sel",
3131
"uart_sel" };
3232

33-
static const char *const infra_mux_spi0_parents[] __initconst = { "i2c_sel", "spi_sel" };
33+
static const char *const infra_mux_spi0_parents[] = { "i2c_sel", "spi_sel" };
3434

35-
static const char *const infra_mux_spi1_parents[] __initconst = { "i2c_sel", "spim_mst_sel" };
35+
static const char *const infra_mux_spi1_parents[] = { "i2c_sel", "spim_mst_sel" };
3636

37-
static const char *const infra_pwm_bck_parents[] __initconst = { "top_rtc_32p7k",
37+
static const char *const infra_pwm_bck_parents[] = { "top_rtc_32p7k",
3838
"csw_infra_f26m_sel", "sysaxi_sel",
3939
"pwm_sel" };
4040

41-
static const char *const infra_pcie_gfmux_tl_ck_o_p0_parents[] __initconst = {
41+
static const char *const infra_pcie_gfmux_tl_ck_o_p0_parents[] = {
4242
"top_rtc_32p7k", "csw_infra_f26m_sel", "csw_infra_f26m_sel", "pextp_tl_sel"
4343
};
4444

45-
static const char *const infra_pcie_gfmux_tl_ck_o_p1_parents[] __initconst = {
45+
static const char *const infra_pcie_gfmux_tl_ck_o_p1_parents[] = {
4646
"top_rtc_32p7k", "csw_infra_f26m_sel", "csw_infra_f26m_sel", "pextp_tl_p1_sel"
4747
};
4848

49-
static const char *const infra_pcie_gfmux_tl_ck_o_p2_parents[] __initconst = {
49+
static const char *const infra_pcie_gfmux_tl_ck_o_p2_parents[] = {
5050
"top_rtc_32p7k", "csw_infra_f26m_sel", "csw_infra_f26m_sel", "pextp_tl_p2_sel"
5151
};
5252

53-
static const char *const infra_pcie_gfmux_tl_ck_o_p3_parents[] __initconst = {
53+
static const char *const infra_pcie_gfmux_tl_ck_o_p3_parents[] = {
5454
"top_rtc_32p7k", "csw_infra_f26m_sel", "csw_infra_f26m_sel", "pextp_tl_p3_sel"
5555
};
5656

0 commit comments

Comments
 (0)