Skip to content

Commit c4ada3c

Browse files
bjdooks-sifivepH5
authored andcommitted
reset: reset-simple should depends on HAS_IOMEM
The reset-simple driver does not build on all architecuters as it requires devm_ioremap_resource() which is only built when CONFIG_HAS_IOMEM is enabled in the kenrel. Fix the following error by depending on CONFIG_HAS_IOMEM: drivers/reset/reset-simple.o: in function `reset_simple_probe': reset-simple.c:(.text+0x3aa): undefined reference to `devm_ioremap_resource' Fixes: 18d1909 ("reset: allow building of reset simple driver if expert config selected") Reported-by: kernel test robot <lkp@intel.com> Signed-off-by: Ben Dooks <ben.dooks@sifive.com> Signed-off-by: Philipp Zabel <p.zabel@pengutronix.de> Link: https://lore.kernel.org/r/20220719085200.203688-1-ben.dooks@sifive.com
1 parent 096e772 commit c4ada3c

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

drivers/reset/Kconfig

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -202,6 +202,7 @@ config RESET_SCMI
202202
config RESET_SIMPLE
203203
bool "Simple Reset Controller Driver" if COMPILE_TEST || EXPERT
204204
default ARCH_ASPEED || ARCH_BCM4908 || ARCH_BITMAIN || ARCH_REALTEK || ARCH_STM32 || (ARCH_INTEL_SOCFPGA && ARM64) || ARCH_SUNXI || ARC
205+
depends on HAS_IOMEM
205206
help
206207
This enables a simple reset controller driver for reset lines that
207208
that can be asserted and deasserted by toggling bits in a contiguous,

0 commit comments

Comments
 (0)