Skip to content

Commit 9003600

Browse files
ColinIanKingbebarino
authored andcommitted
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: Colin Ian King <colin.i.king@gmail.com> Link: https://lore.kernel.org/r/20250112213947.8524-1-colin.i.king@gmail.com Signed-off-by: Stephen Boyd <sboyd@kernel.org>
1 parent fa10b2d commit 9003600

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

drivers/clk/clk-ep93xx.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -586,9 +586,9 @@ static unsigned long calc_pll_rate(u64 rate, u32 config_word)
586586

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

0 commit comments

Comments
 (0)