Skip to content

Commit 8a665d2

Browse files
krzkjic23
authored andcommitted
iio: adc: Fix build error of missing devm_ioremap_resource on UM
The devres.o gets linked if HAS_IOMEM is present so on ARCH=um allyesconfig (COMPILE_TEST) failed with: drivers/built-in.o: In function `at91_adc_probe': at91-sama5d2_adc.c:(.text+0x48f548): undefined reference to `devm_ioremap_resource' Signed-off-by: Krzysztof Kozlowski <k.kozlowski@samsung.com> Signed-off-by: Jonathan Cameron <jic23@kernel.org>
1 parent 1d02369 commit 8a665d2

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

‎drivers/iio/adc/Kconfig‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -134,6 +134,7 @@ config AT91_ADC
134134
config AT91_SAMA5D2_ADC
135135
tristate "Atmel AT91 SAMA5D2 ADC"
136136
depends on ARCH_AT91 || COMPILE_TEST
137+
depends on HAS_IOMEM
137138
help
138139
Say yes here to build support for Atmel SAMA5D2 ADC which is
139140
available on SAMA5D2 SoC family.

0 commit comments

Comments
 (0)