iio: adc: sun4i-gpadc: select REGMAP_IRQ
authorArnd Bergmann <arnd@arndb.de>
Fri, 25 May 2018 15:34:23 +0000 (17:34 +0200)
committerJonathan Cameron <Jonathan.Cameron@huawei.com>
Sun, 10 Jun 2018 10:52:28 +0000 (11:52 +0100)
commitc2c8406b315f7606175b85e9ac1b4fc0972c917f
treea4b202a4a3601ee32ea418f6ccd162570a6095d4
parent2873c3f0e2bd12a7612e905c920c058855f4072a
iio: adc: sun4i-gpadc: select REGMAP_IRQ

We can't call regmap_irq_get_virq() unless the regmap-irq support
is enabled:

drivers/iio/adc/sun4i-gpadc-iio.o: In function `sun4i_irq_init':
sun4i-gpadc-iio.c:(.text+0x59c): undefined reference to `regmap_irq_get_virq'

I came across this in a randconfig build now, but I guess this is
a much older problem that I simply never hit before because regmap_irq
is usually enabled by one of the other drivers that need it.

Fixes: d1caa9905538 ("iio: adc: add support for Allwinner SoCs ADC")
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
drivers/iio/adc/Kconfig