Commit 3b99cd27 authored by Duje Mihanović's avatar Duje Mihanović Committed by Stephen Boyd
Browse files

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: default avatarDuje Mihanović <duje.mihanovic@skole.hr>
Link: https://lore.kernel.org/r/20230812-mmp-nr-clks-v2-4-f9271bd7eaa5@skole.hr


Acked-by: default avatarConor Dooley <conor.dooley@microchip.com>
Signed-off-by: default avatarStephen Boyd <sboyd@kernel.org>
parent 87f06247
Loading
Loading
Loading
Loading
+3 −1
Original line number Diff line number Diff line
@@ -44,6 +44,8 @@
#define APMU_DFC	0x60
#define MPMU_UART_PLL	0x14

#define NR_CLKS		200

struct pxa910_clk_unit {
	struct mmp_clk_unit unit;
	void __iomem *mpmu_base;
@@ -296,7 +298,7 @@ static void __init pxa910_clk_init(struct device_node *np)
		goto unmap_apbc_region;
	}

	mmp_clk_init(np, &pxa_unit->unit, PXA910_NR_CLKS);
	mmp_clk_init(np, &pxa_unit->unit, NR_CLKS);

	pxa910_pll_init(pxa_unit);

+0 −1
Original line number Diff line number Diff line
@@ -55,5 +55,4 @@
#define PXA910_CLK_CCIC0_PHY		108
#define PXA910_CLK_CCIC0_SPHY		109

#define PXA910_NR_CLKS			200
#endif