soc: litex: Properly depend on HAS_IOMEM
authorDavid Gow <davidgow@google.com>
Wed, 27 Jan 2021 03:36:04 +0000 (19:36 -0800)
committerStafford Horne <shorne@gmail.com>
Fri, 29 Jan 2021 21:36:10 +0000 (06:36 +0900)
commit1bea2a937dadd188de70198b0cf3915e05a506e4
tree2db7d414e8b577a38906f080988f1bd27fcb5879
parent6ee1d745b7c9fd573fba142a2efdad76a9f1cb04
soc: litex: Properly depend on HAS_IOMEM

The LiteX SOC controller driver makes use of IOMEM functions like
devm_platform_ioremap_resource(), which are only available if
CONFIG_HAS_IOMEM is defined.

This causes the driver to be enable under make ARCH=um allyesconfig,
even though it won't build.

By adding a dependency on HAS_IOMEM, the driver will not be enabled on
architectures which don't support it.

Fixes: 22447a99c97e ("drivers/soc/litex: add LiteX SoC Controller driver")
Signed-off-by: David Gow <davidgow@google.com>
[shorne@gmail.com: Fix typo in commit message pointed out in review]
Signed-off-by: Stafford Horne <shorne@gmail.com>
drivers/soc/litex/Kconfig