iio: adc: adi-axi-adc: add proper Kconfig dependencies
authorAlexandru Ardelean <alexandru.ardelean@analog.com>
Wed, 10 Feb 2021 10:50:44 +0000 (12:50 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 25 Mar 2021 08:04:16 +0000 (09:04 +0100)
commitb477c121a287955ad46bf6bf29520737d6699e43
tree192f76b81b991d7a01ca51add89fb1240ecf971f
parentd894acab284426d1500f84dca4bfc4634711b28a
iio: adc: adi-axi-adc: add proper Kconfig dependencies

commit be24c65e9fa2486bb8ec98d9f592bdcf04bedd88 upstream.

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: ef04070692a21 ("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>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/iio/adc/Kconfig