Skip to content

Commit ddd0521

Browse files
sulixalexandrebelloni
authored andcommitted
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: 09ef18b ("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
1 parent 15f57b3 commit ddd0521

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/rtc/Kconfig

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1293,7 +1293,7 @@ config RTC_DRV_OPAL
12931293

12941294
config RTC_DRV_ZYNQMP
12951295
tristate "Xilinx Zynq Ultrascale+ MPSoC RTC"
1296-
depends on OF
1296+
depends on OF && HAS_IOMEM
12971297
help
12981298
If you say yes here you get support for the RTC controller found on
12991299
Xilinx Zynq Ultrascale+ MPSoC.

0 commit comments

Comments
 (0)