Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

clk: pxa168: Move number of clocks to driver source

The number of clocks should not be in the dt binding as it is not used
by the respective device tree and thus needlessly bloats the ABI.

Move this number of clocks into the driver source.

Signed-off-by: Duje Mihanović <duje.mihanovic@skole.hr>
Link: https://lore.kernel.org/r/20230812-mmp-nr-clks-v2-2-f9271bd7eaa5@skole.hr
Acked-by: Conor Dooley <conor.dooley@microchip.com>
Signed-off-by: Stephen Boyd <sboyd@kernel.org>

authored by

Duje Mihanović and committed by
Stephen Boyd
51fa6aa5 46c13513

+3 -2
+3 -1
drivers/clk/mmp/clk-of-pxa168.c
··· 62 62 #define APMU_EPD 0x104 63 63 #define MPMU_UART_PLL 0x14 64 64 65 + #define NR_CLKS 200 66 + 65 67 struct pxa168_clk_unit { 66 68 struct mmp_clk_unit unit; 67 69 void __iomem *mpmu_base; ··· 323 321 return; 324 322 } 325 323 326 - mmp_clk_init(np, &pxa_unit->unit, PXA168_NR_CLKS); 324 + mmp_clk_init(np, &pxa_unit->unit, NR_CLKS); 327 325 328 326 pxa168_pll_init(pxa_unit); 329 327
-1
include/dt-bindings/clock/marvell,pxa168.h
··· 63 63 #define PXA168_CLK_SDH01_AXI 111 64 64 #define PXA168_CLK_SDH23_AXI 112 65 65 66 - #define PXA168_NR_CLKS 200 67 66 #endif