iio: adc: Fix build error of missing devm_ioremap_resource on UM
authorKrzysztof Kozlowski <k.kozlowski@samsung.com>
Fri, 4 Mar 2016 01:05:26 +0000 (10:05 +0900)
committerJonathan Cameron <jic23@kernel.org>
Sat, 5 Mar 2016 18:48:14 +0000 (18:48 +0000)
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>
drivers/iio/adc/Kconfig

index 932de1f9d1e74ce0a3d81a9770b87b669f90d9f8..a8819a08a8287d5532fe6e1967d7a3459738dee9 100644 (file)
@@ -134,6 +134,7 @@ config AT91_ADC
 config AT91_SAMA5D2_ADC
        tristate "Atmel AT91 SAMA5D2 ADC"
        depends on ARCH_AT91 || COMPILE_TEST
+       depends on HAS_IOMEM
        help
          Say yes here to build support for Atmel SAMA5D2 ADC which is
          available on SAMA5D2 SoC family.