Commit 90036009 authored by Colin Ian King's avatar Colin Ian King Committed by Stephen Boyd
Browse files

clk: ep93xx: make const read-only arrays static



Don't populate the const read-only arrays on the stack at run time,
instead make them static.

Signed-off-by: default avatarColin Ian King <colin.i.king@gmail.com>
Link: https://lore.kernel.org/r/20250112213947.8524-1-colin.i.king@gmail.com


Signed-off-by: default avatarStephen Boyd <sboyd@kernel.org>
parent fa10b2df
Loading
Loading
Loading
Loading
+3 −3
Original line number Diff line number Diff line
@@ -586,9 +586,9 @@ static unsigned long calc_pll_rate(u64 rate, u32 config_word)

static int ep93xx_plls_init(struct ep93xx_clk_priv *priv)
{
	const char fclk_divisors[] = { 1, 2, 4, 8, 16, 1, 1, 1 };
	const char hclk_divisors[] = { 1, 2, 4, 5, 6, 8, 16, 32 };
	const char pclk_divisors[] = { 1, 2, 4, 8 };
	static const char fclk_divisors[] = { 1, 2, 4, 8, 16, 1, 1, 1 };
	static const char hclk_divisors[] = { 1, 2, 4, 5, 6, 8, 16, 32 };
	static const char pclk_divisors[] = { 1, 2, 4, 8 };
	struct clk_parent_data xtali = { .index = 0 };
	unsigned int clk_f_div, clk_h_div, clk_p_div;
	unsigned long clk_pll1_rate, clk_pll2_rate;