[PATCH v2] ethernet: stmmac: make DWMAC_STM32 depend on it's associated SoC

Subsystems: networking drivers, stmmac ethernet driver, the rest

STALE3546d

2 messages, 2 authors, 2016-11-21 · open the first message on its own page

[PATCH v2] ethernet: stmmac: make DWMAC_STM32 depend on it's associated SoC

From: Peter Robinson <hidden>
Date: 2016-11-20 17:39:41

There's not much point, except compile test, enabling the stmmac
platform drivers unless the STM32 SoC is enabled. It's not
useful without it.

Signed-off-by: Peter Robinson <redacted>
---
 drivers/net/ethernet/stmicro/stmmac/Kconfig | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/net/ethernet/stmicro/stmmac/Kconfig b/drivers/net/ethernet/stmicro/stmmac/Kconfig
index 3818c5e..4b78168 100644
--- a/drivers/net/ethernet/stmicro/stmmac/Kconfig
+++ b/drivers/net/ethernet/stmicro/stmmac/Kconfig
@@ -107,7 +107,7 @@ config DWMAC_STI
 config DWMAC_STM32
 	tristate "STM32 DWMAC support"
 	default ARCH_STM32
-	depends on OF && HAS_IOMEM
+	depends on OF && HAS_IOMEM && (ARCH_STM32 || COMPILE_TEST)
 	select MFD_SYSCON
 	---help---
 	  Support for ethernet controller on STM32 SOCs.
-- 
2.9.3

Re: [PATCH v2] ethernet: stmmac: make DWMAC_STM32 depend on it's associated SoC

From: David Miller <davem@davemloft.net>
Date: 2016-11-21 16:36:06

From: Peter Robinson <redacted>
Date: Sun, 20 Nov 2016 17:22:38 +0000
There's not much point, except compile test, enabling the stmmac
platform drivers unless the STM32 SoC is enabled. It's not
useful without it.

Signed-off-by: Peter Robinson <redacted>
Applied.
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help