]> git.kernelconcepts.de Git - karo-tx-linux.git/commitdiff
mlxsw: Make pci module dependent on HAS_DMA and HAS_IOMEM
authorJiri Pirko <jiri@mellanox.com>
Thu, 6 Aug 2015 14:41:54 +0000 (16:41 +0200)
committerDavid S. Miller <davem@davemloft.net>
Mon, 10 Aug 2015 05:54:09 +0000 (22:54 -0700)
This resolves compile errors on um-allyesconfig.

Note that there are many other drivers which have the same issue.

Reported-by: kbuild test robot <fengguang.wu@intel.com>
Signed-off-by: Jiri Pirko <jiri@mellanox.com>
Signed-off-by: Ido Schimmel <idosch@mellanox.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/mellanox/mlxsw/Kconfig

index 8d1080da49b5707ac9fd55bccb500a3a46f39220..2941d9c5ae486250f340915901464b22cc5aef93 100644 (file)
@@ -12,7 +12,7 @@ config MLXSW_CORE
 
 config MLXSW_PCI
        tristate "PCI bus implementation for Mellanox Technologies Switch ASICs"
-       depends on PCI && MLXSW_CORE
+       depends on PCI && HAS_DMA && HAS_IOMEM && MLXSW_CORE
        default m
        ---help---
          This is PCI bus implementation for Mellanox Technologies Switch ASICs.