]> git.proxmox.com Git - mirror_ubuntu-hirsute-kernel.git/commitdiff
via-rhine: Add platform dependencies
authorGeert Uytterhoeven <geert+renesas@glider.be>
Thu, 7 May 2020 11:42:05 +0000 (13:42 +0200)
committerDavid S. Miller <davem@davemloft.net>
Thu, 7 May 2020 20:16:53 +0000 (13:16 -0700)
The VIA Rhine Ethernet interface is only present on PCI devices or
VIA/WonderMedia VT8500/WM85xx SoCs.  Add platform dependencies to the
VIA_RHINE config symbol, to avoid asking the user about it when
configuring a kernel without PCI or VT8500/WM85xx support.

Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be>
Acked-by: Arnd Bergmann <arnd@arndb.de>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/via/Kconfig

index a962097b58c669352bdd170c0ab4a689ec96e0dc..6cff5f7d57c47ba703f5bc50273a9cbb59405602 100644 (file)
@@ -19,6 +19,7 @@ if NET_VENDOR_VIA
 config VIA_RHINE
        tristate "VIA Rhine support"
        depends on PCI || (OF_IRQ && GENERIC_PCI_IOMAP)
+       depends on PCI || ARCH_VT8500 || COMPILE_TEST
        depends on HAS_DMA
        select CRC32
        select MII