Skip to content

Commit 3b99cd2

Browse files
LegoLivesMatterbebarino
authored andcommitted
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>
1 parent 87f0624 commit 3b99cd2

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

drivers/clk/mmp/clk-of-pxa910.c

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,8 @@
4444
#define APMU_DFC 0x60
4545
#define MPMU_UART_PLL 0x14
4646

47+
#define NR_CLKS 200
48+
4749
struct pxa910_clk_unit {
4850
struct mmp_clk_unit unit;
4951
void __iomem *mpmu_base;
@@ -296,7 +298,7 @@ static void __init pxa910_clk_init(struct device_node *np)
296298
goto unmap_apbc_region;
297299
}
298300

299-
mmp_clk_init(np, &pxa_unit->unit, PXA910_NR_CLKS);
301+
mmp_clk_init(np, &pxa_unit->unit, NR_CLKS);
300302

301303
pxa910_pll_init(pxa_unit);
302304

include/dt-bindings/clock/marvell,pxa910.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,5 +55,4 @@
5555
#define PXA910_CLK_CCIC0_PHY 108
5656
#define PXA910_CLK_CCIC0_SPHY 109
5757

58-
#define PXA910_NR_CLKS 200
5958
#endif

0 commit comments

Comments
 (0)