rtc: zynqmp: depend on HAS_IOMEM
authorDavid Gow <davidgow@google.com>
Wed, 27 Jan 2021 03:51:47 +0000 (19:51 -0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 4 Mar 2021 10:38:03 +0000 (11:38 +0100)
commit378f670e08fcb940e6816fac369aa749344e1d16
treefae85724c5ae2060a86fa23fc12e20d517f2e295
parent8a40ca0c8b9fa66e165f6019ccc63a10a95766e1
rtc: zynqmp: depend on HAS_IOMEM

[ Upstream commit ddd0521549a975e6148732d6ca6b89ffa862c0e5 ]

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: 09ef18bcd5ac ("rtc: use devm_platform_ioremap_resource() to simplify code")
Signed-off-by: David Gow <davidgow@google.com>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
Link: https://lore.kernel.org/r/20210127035146.1523286-1-davidgow@google.com
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/rtc/Kconfig