Skip to content

Commit 51fa6aa

Browse files
LegoLivesMatterbebarino
authored andcommitted
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>
1 parent 46c1351 commit 51fa6aa

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

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

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,8 @@
6262
#define APMU_EPD 0x104
6363
#define MPMU_UART_PLL 0x14
6464

65+
#define NR_CLKS 200
66+
6567
struct pxa168_clk_unit {
6668
struct mmp_clk_unit unit;
6769
void __iomem *mpmu_base;
@@ -321,7 +323,7 @@ static void __init pxa168_clk_init(struct device_node *np)
321323
return;
322324
}
323325

324-
mmp_clk_init(np, &pxa_unit->unit, PXA168_NR_CLKS);
326+
mmp_clk_init(np, &pxa_unit->unit, NR_CLKS);
325327

326328
pxa168_pll_init(pxa_unit);
327329

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

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,5 +63,4 @@
6363
#define PXA168_CLK_SDH01_AXI 111
6464
#define PXA168_CLK_SDH23_AXI 112
6565

66-
#define PXA168_NR_CLKS 200
6766
#endif

0 commit comments

Comments
 (0)