Skip to content

Commit

Permalink
clk: ep93xx: make const read-only arrays static
Browse files Browse the repository at this point in the history
Don't populate the const read-only arrays on the stack at run time,
instead make them static.

Signed-off-by: Colin Ian King <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Stephen Boyd <[email protected]>
  • Loading branch information
ColinIanKing authored and bebarino committed Jan 13, 2025
1 parent fa10b2d commit 9003600
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions drivers/clk/clk-ep93xx.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 9003600

Please sign in to comment.