Skip to content

Commit 588d55a

Browse files
committed
clk: renesas: r8a779h0: Initial clock descriptions should be __initconst
r8a779h0_core_clks[], r8a779h0_mod_clks[], and cpg_pll_configs[] are only used during initialization. Hence make them __initconst, so they will be freed later. Fixes: f077cab ("clk: renesas: cpg-mssr: Add support for R-Car V4M") Signed-off-by: Geert Uytterhoeven <[email protected]> Reviewed-by: Niklas Söderlund <[email protected]> Link: https://lore.kernel.org/35bbcfb914ddb377fa77e3425e4e7e232c7c2cf9.1720794214.git.geert+renesas@glider.be
1 parent 898b5bc commit 588d55a

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

drivers/clk/renesas/r8a779h0-cpg-mssr.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ enum clk_ids {
6363
MOD_CLK_BASE
6464
};
6565

66-
static const struct cpg_core_clk r8a779h0_core_clks[] = {
66+
static const struct cpg_core_clk r8a779h0_core_clks[] __initconst = {
6767
/* External Clock Inputs */
6868
DEF_INPUT("extal", CLK_EXTAL),
6969
DEF_INPUT("extalr", CLK_EXTALR),
@@ -172,7 +172,7 @@ static const struct cpg_core_clk r8a779h0_core_clks[] = {
172172
DEF_GEN4_MDSEL("r", R8A779H0_CLK_R, 29, CLK_EXTALR, 1, CLK_OCO, 1),
173173
};
174174

175-
static const struct mssr_mod_clk r8a779h0_mod_clks[] = {
175+
static const struct mssr_mod_clk r8a779h0_mod_clks[] __initconst = {
176176
DEF_MOD("avb0:rgmii0", 211, R8A779H0_CLK_S0D8_HSC),
177177
DEF_MOD("avb1:rgmii1", 212, R8A779H0_CLK_S0D8_HSC),
178178
DEF_MOD("avb2:rgmii2", 213, R8A779H0_CLK_S0D8_HSC),
@@ -253,7 +253,7 @@ static const struct mssr_mod_clk r8a779h0_mod_clks[] = {
253253
#define CPG_PLL_CONFIG_INDEX(md) ((((md) & BIT(14)) >> 13) | \
254254
(((md) & BIT(13)) >> 13))
255255

256-
static const struct rcar_gen4_cpg_pll_config cpg_pll_configs[4] = {
256+
static const struct rcar_gen4_cpg_pll_config cpg_pll_configs[4] __initconst = {
257257
/* EXTAL div PLL1 mult/div PLL2 mult/div PLL3 mult/div PLL4 mult/div PLL5 mult/div PLL6 mult/div OSC prediv */
258258
{ 1, 192, 1, 240, 1, 192, 1, 240, 1, 192, 1, 168, 1, 16, },
259259
{ 1, 160, 1, 200, 1, 160, 1, 200, 1, 160, 1, 140, 1, 19, },

0 commit comments

Comments
 (0)