Commit ddd05215 authored by David Gow's avatar David Gow Committed by Alexandre Belloni

rtc: zynqmp: depend on HAS_IOMEM

The Xilinx zynqmp RTC 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 not 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: 09ef18bc ("rtc: use devm_platform_ioremap_resource() to simplify code")
Signed-off-by: default avatarDavid Gow <davidgow@google.com>
Signed-off-by: default avatarAlexandre Belloni <alexandre.belloni@bootlin.com>
Link: https://lore.kernel.org/r/20210127035146.1523286-1-davidgow@google.com
parent 15f57b3e
...@@ -1293,7 +1293,7 @@ config RTC_DRV_OPAL ...@@ -1293,7 +1293,7 @@ config RTC_DRV_OPAL
config RTC_DRV_ZYNQMP config RTC_DRV_ZYNQMP
tristate "Xilinx Zynq Ultrascale+ MPSoC RTC" tristate "Xilinx Zynq Ultrascale+ MPSoC RTC"
depends on OF depends on OF && HAS_IOMEM
help help
If you say yes here you get support for the RTC controller found on If you say yes here you get support for the RTC controller found on
Xilinx Zynq Ultrascale+ MPSoC. Xilinx Zynq Ultrascale+ MPSoC.
......
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