]> git.baikalelectronics.ru Git - kernel.git/commit
net: dsa: lantiq_gswip: Depend on HAS_IOMEM
authorHauke Mehrtens <hauke@hauke-m.de>
Tue, 25 Sep 2018 19:55:33 +0000 (21:55 +0200)
committerDavid S. Miller <davem@davemloft.net>
Wed, 26 Sep 2018 03:27:43 +0000 (20:27 -0700)
commitacbc4ae8d7255f11ccffa1a429492cbb8fd2adc8
treeeed00831548e9b094442aeda5afb650d31684e30
parentd92dcd6ca1f019569242dc0fd9b54fdfee6498b5
net: dsa: lantiq_gswip: Depend on HAS_IOMEM

The driver uses devm_ioremap_resource() which is only available when
CONFIG_HAS_IOMEM is set, make the driver depend on this config option.
User mode Linux does not have CONFIG_HAS_IOMEM set and the driver was
failing on this architecture.

Fixes: 1e1742476b63 ("net: dsa: Add Lantiq / Intel DSA driver for vrx200")
Reported-by: kbuild test robot <lkp@intel.com>
Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/dsa/Kconfig