diff options
author | 2021-01-26 19:36:04 -0800 | |
---|---|---|
committer | 2021-01-30 06:36:10 +0900 | |
commit | 1bea2a937dadd188de70198b0cf3915e05a506e4 (patch) | |
tree | 2db7d414e8b577a38906f080988f1bd27fcb5879 | |
parent | Linux 5.11-rc5 (diff) | |
download | linux-1bea2a937dadd188de70198b0cf3915e05a506e4.tar.gz linux-1bea2a937dadd188de70198b0cf3915e05a506e4.tar.bz2 linux-1bea2a937dadd188de70198b0cf3915e05a506e4.zip |
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>
-rw-r--r-- | drivers/soc/litex/Kconfig | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/soc/litex/Kconfig b/drivers/soc/litex/Kconfig index 7c6b009b6f6c..7a7c38282e11 100644 --- a/drivers/soc/litex/Kconfig +++ b/drivers/soc/litex/Kconfig @@ -8,6 +8,7 @@ config LITEX config LITEX_SOC_CONTROLLER tristate "Enable LiteX SoC Controller driver" depends on OF || COMPILE_TEST + depends on HAS_IOMEM select LITEX help This option enables the SoC Controller Driver which verifies |