]> git.baikalelectronics.ru Git - kernel.git/commitdiff
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)
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

index 7c09d8f195ae63c98709477010b018068048d79c..71bb3aebded4e46bb4d54e2aef2fc0951f1c8658 100644 (file)
@@ -25,7 +25,7 @@ config NET_DSA_LOOP
 
 config NET_DSA_LANTIQ_GSWIP
        tristate "Lantiq / Intel GSWIP"
-       depends on NET_DSA
+       depends on HAS_IOMEM && NET_DSA
        select NET_DSA_TAG_GSWIP
        ---help---
          This enables support for the Lantiq / Intel GSWIP 2.1 found in