Skip to content

Commit

Permalink
rtc: zynqmp: depend on HAS_IOMEM
Browse files Browse the repository at this point in the history
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 <[email protected]>
Signed-off-by: Alexandre Belloni <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
  • Loading branch information
sulix authored and alexandrebelloni committed Feb 2, 2021
1 parent 15f57b3 commit ddd0521
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/rtc/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -1293,7 +1293,7 @@ config RTC_DRV_OPAL

config RTC_DRV_ZYNQMP
tristate "Xilinx Zynq Ultrascale+ MPSoC RTC"
depends on OF
depends on OF && HAS_IOMEM
help
If you say yes here you get support for the RTC controller found on
Xilinx Zynq Ultrascale+ MPSoC.
Expand Down

0 comments on commit ddd0521

Please sign in to comment.