Skip to content

Commit 0e704f6

Browse files
Andi Kleengeertu
authored andcommitted
clk: renesas: rcar-gen4: Fix initconst confusion for cpg_pll_config
A variable pointing to const isn't const itself. It'd have to contain "const" keyword after "*" too. Therefore, cpg_pll_config cannot be put to "rodata". Hence use __initdata instead of __initconst to fix this. Signed-off-by: Andi Kleen <[email protected]> [js] more explanatory commit message. Signed-off-by: Jiri Slaby <[email protected]> Acked-by: Stephen Boyd <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Geert Uytterhoeven <[email protected]>
1 parent 95d48d2 commit 0e704f6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/clk/renesas/rcar-gen4-cpg.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
#include "rcar-gen4-cpg.h"
2424
#include "rcar-cpg-lib.h"
2525

26-
static const struct rcar_gen4_cpg_pll_config *cpg_pll_config __initconst;
26+
static const struct rcar_gen4_cpg_pll_config *cpg_pll_config __initdata;
2727
static unsigned int cpg_clk_extalr __initdata;
2828
static u32 cpg_mode __initdata;
2929

0 commit comments

Comments
 (0)