diff options
author | Geert Uytterhoeven | 2018-06-22 13:08:43 +0200 |
---|---|---|
committer | David S. Miller | 2018-06-23 03:44:30 +0200 |
commit | e020797b7def11c8feeb3ee5c1f48c12cb959def (patch) | |
tree | adb0a3a1797af7e353e23382cbe367d106f5b5b4 /drivers/net/ethernet/hisilicon | |
parent | MAINTAINERS: Add file patterns for dsa device tree bindings (diff) | |
download | kernel-qcow2-linux-e020797b7def11c8feeb3ee5c1f48c12cb959def.tar.gz kernel-qcow2-linux-e020797b7def11c8feeb3ee5c1f48c12cb959def.tar.xz kernel-qcow2-linux-e020797b7def11c8feeb3ee5c1f48c12cb959def.zip |
net: Remove depends on HAS_DMA in case of platform dependency
Remove dependencies on HAS_DMA where a Kconfig symbol depends on another
symbol that implies HAS_DMA, and, optionally, on "|| COMPILE_TEST".
In most cases this other symbol is an architecture or platform specific
symbol, or PCI.
Generic symbols and drivers without platform dependencies keep their
dependencies on HAS_DMA, to prevent compiling subsystems or drivers that
cannot work anyway.
This simplifies the dependencies, and allows to improve compile-testing.
Signed-off-by: Geert Uytterhoeven <geert@linux-m68k.org>
Reviewed-by: Mark Brown <broonie@kernel.org>
Acked-by: Robin Murphy <robin.murphy@arm.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/ethernet/hisilicon')
-rw-r--r-- | drivers/net/ethernet/hisilicon/Kconfig | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/ethernet/hisilicon/Kconfig b/drivers/net/ethernet/hisilicon/Kconfig index 8bcf470ff5f3..fb1a7251f45d 100644 --- a/drivers/net/ethernet/hisilicon/Kconfig +++ b/drivers/net/ethernet/hisilicon/Kconfig @@ -5,7 +5,7 @@ config NET_VENDOR_HISILICON bool "Hisilicon devices" default y - depends on (OF || ACPI) && HAS_DMA + depends on OF || ACPI depends on ARM || ARM64 || COMPILE_TEST ---help--- If you have a network (Ethernet) card belonging to this class, say Y. |