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

Configure Feed

Select the types of activity you want to include in your feed.

clk: pxa910: 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-4-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
3b99cd27 87f06247

+3 -2
+3 -1
drivers/clk/mmp/clk-of-pxa910.c
··· 44 44 #define APMU_DFC 0x60 45 45 #define MPMU_UART_PLL 0x14 46 46 47 + #define NR_CLKS 200 48 + 47 49 struct pxa910_clk_unit { 48 50 struct mmp_clk_unit unit; 49 51 void __iomem *mpmu_base; ··· 298 296 goto unmap_apbc_region; 299 297 } 300 298 301 - mmp_clk_init(np, &pxa_unit->unit, PXA910_NR_CLKS); 299 + mmp_clk_init(np, &pxa_unit->unit, NR_CLKS); 302 300 303 301 pxa910_pll_init(pxa_unit); 304 302
-1
include/dt-bindings/clock/marvell,pxa910.h
··· 55 55 #define PXA910_CLK_CCIC0_PHY 108 56 56 #define PXA910_CLK_CCIC0_SPHY 109 57 57 58 - #define PXA910_NR_CLKS 200 59 58 #endif