Skip to content

Commit bde4975

Browse files
montjoiedavem330
authored andcommitted
net: stmmac: fix build failure due to missing COMMON_CLK dependency
This patch fix the build failure on m68k; drivers/net/ethernet/stmicro/stmmac/dwmac-ipq806x.o: In function `ipq806x_gmac_probe': dwmac-ipq806x.c:(.text+0xda): undefined reference to `clk_set_rate' drivers/net/ethernet/stmicro/stmmac/dwmac-rk.o: In function `rk_gmac_probe': dwmac-rk.c:(.text+0x1e58): undefined reference to `clk_set_rate' drivers/net/ethernet/stmicro/stmmac/dwmac-sti.o: In function `stid127_fix_retime_src': dwmac-sti.c:(.text+0xd8): undefined reference to `clk_set_rate' dwmac-sti.c:(.text+0x114): undefined reference to `clk_set_rate' drivers/net/ethernet/stmicro/stmmac/dwmac-sti.o:dwmac-sti.c:(.text+0x12c): more undefined references to `clk_set_rate' follow Lots of stmmac platform drivers need COMMON_CLK in their Kconfig depends. Signed-off-by: Corentin Labbe <[email protected]> Signed-off-by: David S. Miller <[email protected]>
1 parent 66e58e0 commit bde4975

File tree

1 file changed

+5
-5
lines changed
  • drivers/net/ethernet/stmicro/stmmac

1 file changed

+5
-5
lines changed

drivers/net/ethernet/stmicro/stmmac/Kconfig

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ config DWMAC_DWC_QOS_ETH
3333
select PHYLIB
3434
select CRC32
3535
select MII
36-
depends on OF && HAS_DMA
36+
depends on OF && COMMON_CLK && HAS_DMA
3737
help
3838
Support for chips using the snps,dwc-qos-ethernet.txt DT binding.
3939

@@ -57,7 +57,7 @@ config DWMAC_ANARION
5757
config DWMAC_IPQ806X
5858
tristate "QCA IPQ806x DWMAC support"
5959
default ARCH_QCOM
60-
depends on OF && (ARCH_QCOM || COMPILE_TEST)
60+
depends on OF && COMMON_CLK && (ARCH_QCOM || COMPILE_TEST)
6161
select MFD_SYSCON
6262
help
6363
Support for QCA IPQ806X DWMAC Ethernet.
@@ -100,7 +100,7 @@ config DWMAC_OXNAS
100100
config DWMAC_ROCKCHIP
101101
tristate "Rockchip dwmac support"
102102
default ARCH_ROCKCHIP
103-
depends on OF && (ARCH_ROCKCHIP || COMPILE_TEST)
103+
depends on OF && COMMON_CLK && (ARCH_ROCKCHIP || COMPILE_TEST)
104104
select MFD_SYSCON
105105
help
106106
Support for Ethernet controller on Rockchip RK3288 SoC.
@@ -123,7 +123,7 @@ config DWMAC_SOCFPGA
123123
config DWMAC_STI
124124
tristate "STi GMAC support"
125125
default ARCH_STI
126-
depends on OF && (ARCH_STI || COMPILE_TEST)
126+
depends on OF && COMMON_CLK && (ARCH_STI || COMPILE_TEST)
127127
select MFD_SYSCON
128128
---help---
129129
Support for ethernet controller on STi SOCs.
@@ -147,7 +147,7 @@ config DWMAC_STM32
147147
config DWMAC_SUNXI
148148
tristate "Allwinner GMAC support"
149149
default ARCH_SUNXI
150-
depends on OF && (ARCH_SUNXI || COMPILE_TEST)
150+
depends on OF && COMMON_CLK && (ARCH_SUNXI || COMPILE_TEST)
151151
---help---
152152
Support for Allwinner A20/A31 GMAC ethernet controllers.
153153

0 commit comments

Comments
 (0)