Commit 0e704f6c authored by Andi Kleen's avatar Andi Kleen Committed by Geert Uytterhoeven
Browse files

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: default avatarAndi Kleen <ak@linux.intel.com>
[js] more explanatory commit message.
Signed-off-by: default avatarJiri Slaby <jslaby@suse.cz>
Acked-by: default avatarStephen Boyd <sboyd@kernel.org>
Link: https://lore.kernel.org/r/20220623083217.26433-2-jslaby@suse.cz


Signed-off-by: default avatarGeert Uytterhoeven <geert+renesas@glider.be>
parent 95d48d27
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -23,7 +23,7 @@
#include "rcar-gen4-cpg.h"
#include "rcar-cpg-lib.h"

static const struct rcar_gen4_cpg_pll_config *cpg_pll_config __initconst;
static const struct rcar_gen4_cpg_pll_config *cpg_pll_config __initdata;
static unsigned int cpg_clk_extalr __initdata;
static u32 cpg_mode __initdata;