Commit 3475372f authored by Hauke Mehrtens's avatar Hauke Mehrtens Committed by David S. Miller

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: 14fceff4 ("net: dsa: Add Lantiq / Intel DSA driver for vrx200")
Reported-by: default avatarkbuild test robot <lkp@intel.com>
Signed-off-by: default avatarHauke Mehrtens <hauke@hauke-m.de>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 921f432c
...@@ -25,7 +25,7 @@ config NET_DSA_LOOP ...@@ -25,7 +25,7 @@ config NET_DSA_LOOP
config NET_DSA_LANTIQ_GSWIP config NET_DSA_LANTIQ_GSWIP
tristate "Lantiq / Intel GSWIP" tristate "Lantiq / Intel GSWIP"
depends on NET_DSA depends on HAS_IOMEM && NET_DSA
select NET_DSA_TAG_GSWIP select NET_DSA_TAG_GSWIP
---help--- ---help---
This enables support for the Lantiq / Intel GSWIP 2.1 found in This enables support for the Lantiq / Intel GSWIP 2.1 found in
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment