[PATCH v3 05/19] clk: at91: sama7d65: Use highest PMC definition as max index
Alexander Dahl
ada at thorsis.com
Tue Jan 20 06:37:26 PST 2026
Consistent with all the other at91 clock drivers now, which also use the
highest PMC definition as max value, and no extra number.
Signed-off-by: Alexander Dahl <ada at thorsis.com>
---
Notes:
v3:
- new patch, not present in v2
drivers/clk/at91/sama7d65.c | 4 +---
1 file changed, 1 insertion(+), 3 deletions(-)
diff --git a/drivers/clk/at91/sama7d65.c b/drivers/clk/at91/sama7d65.c
index f6f86261ceefd..4ccffa8db43a5 100644
--- a/drivers/clk/at91/sama7d65.c
+++ b/drivers/clk/at91/sama7d65.c
@@ -19,8 +19,6 @@ static DEFINE_SPINLOCK(pmc_pll_lock);
static DEFINE_SPINLOCK(pmc_mck0_lock);
static DEFINE_SPINLOCK(pmc_mckX_lock);
-#define PMC_INDEX_MAX 25
-
/*
* PLL clocks identifiers
* @PLL_ID_CPU: CPU PLL identifier
@@ -1120,7 +1118,7 @@ static void __init sama7d65_pmc_setup(struct device_node *np)
if (IS_ERR(regmap))
return;
- sama7d65_pmc = pmc_data_allocate(PMC_INDEX_MAX,
+ sama7d65_pmc = pmc_data_allocate(SAMA7D65_PMC_MCK5 + 1,
nck(sama7d65_systemck),
nck(sama7d65_periphck),
nck(sama7d65_gck), 8);
--
2.47.3
More information about the linux-arm-kernel
mailing list