aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorArnd Bergmann <arnd@arndb.de>2017-08-15 10:46:31 -0400
committerJonathan Cameron <Jonathan.Cameron@huawei.com>2017-08-17 10:37:14 -0400
commit3f09b8d2ea9940041557fffd55244da5bc434a99 (patch)
tree604338a6e4a7db45065543b6db324edb6302e46e
parent4303741f99d617c1fc3c9069195d3d620c2f88c4 (diff)
iio: adc: select triggered buffer for sama5d2 adc
Without the triggered buffer code, we get a link error: drivers/iio/adc/at91-sama5d2_adc.o: In function `at91_adc_probe': at91-sama5d2_adc.c:(.text+0x938): undefined reference to `devm_iio_triggered_buffer_setup' This adds a Kconfig 'select' statement like other ADC drivers have it already. Fixes: 5e1a1da0f8c9 ("iio: adc: at91-sama5d2_adc: add hw trigger and buffer support") Signed-off-by: Arnd Bergmann <arnd@arndb.de> Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
-rw-r--r--drivers/iio/adc/Kconfig1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/iio/adc/Kconfig b/drivers/iio/adc/Kconfig
index e4eeebac5297..57625653fcb6 100644
--- a/drivers/iio/adc/Kconfig
+++ b/drivers/iio/adc/Kconfig
@@ -158,6 +158,7 @@ config AT91_SAMA5D2_ADC
158 tristate "Atmel AT91 SAMA5D2 ADC" 158 tristate "Atmel AT91 SAMA5D2 ADC"
159 depends on ARCH_AT91 || COMPILE_TEST 159 depends on ARCH_AT91 || COMPILE_TEST
160 depends on HAS_IOMEM 160 depends on HAS_IOMEM
161 select IIO_TRIGGERED_BUFFER
161 help 162 help
162 Say yes here to build support for Atmel SAMA5D2 ADC which is 163 Say yes here to build support for Atmel SAMA5D2 ADC which is
163 available on SAMA5D2 SoC family. 164 available on SAMA5D2 SoC family.