Skip to content

Commit be24c65

Browse files
commodojic23
authored andcommitted
iio: adc: adi-axi-adc: add proper Kconfig dependencies
The ADI AXI ADC driver requires IO mem access and OF to work. This change adds these dependencies to the Kconfig symbol of the driver. This was also found via the lkp bot, as the devm_platform_ioremap_resource() symbol was not found at link-time on the S390 architecture. Fixes: ef04070 ("iio: adc: adi-axi-adc: add support for AXI ADC IP core") Reported-by: kernel test robot <lkp@intel.com> Signed-off-by: Alexandru Ardelean <alexandru.ardelean@analog.com> Cc: <Stable@vger.kernel.org> Link: https://lore.kernel.org/r/20210210105044.48914-1-alexandru.ardelean@analog.com Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
1 parent f890987 commit be24c65

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

drivers/iio/adc/Kconfig

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -266,6 +266,8 @@ config ADI_AXI_ADC
266266
select IIO_BUFFER
267267
select IIO_BUFFER_HW_CONSUMER
268268
select IIO_BUFFER_DMAENGINE
269+
depends on HAS_IOMEM
270+
depends on OF
269271
help
270272
Say yes here to build support for Analog Devices Generic
271273
AXI ADC IP core. The IP core is used for interfacing with

0 commit comments

Comments
 (0)