]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commitdiff
ethernet: stmmac: make DWMAC_STM32 depend on it's associated SoC
authorPeter Robinson <pbrobinson@gmail.com>
Sun, 20 Nov 2016 17:22:38 +0000 (17:22 +0000)
committerDavid S. Miller <davem@davemloft.net>
Mon, 21 Nov 2016 16:34:24 +0000 (11:34 -0500)
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 <pbrobinson@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/stmicro/stmmac/Kconfig

index 3818c5e06ebac5099f8051c813222349a2f6a6a5..4b78168a5f3ce8cd8b971c3e88c5addf1f46a7e3 100644 (file)
@@ -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.