[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-Id: <1517318506-14664-1-git-send-email-geert@linux-m68k.org>
Date: Tue, 30 Jan 2018 14:21:46 +0100
From: Geert Uytterhoeven <geert@...ux-m68k.org>
To: Jonathan Cameron <jic23@...nel.org>,
Arnaud Pouliquen <arnaud.pouliquen@...com>,
Mark Brown <broonie@...nel.org>
Cc: linux-iio@...r.kernel.org, alsa-devel@...a-project.org,
linux-kernel@...r.kernel.org,
Geert Uytterhoeven <geert@...ux-m68k.org>
Subject: [PATCH] iio: adc: STM32_DFSDM_ADC should depend on HAS_DMA
If NO_DMA=y:
ERROR: "bad_dma_ops" [drivers/iio/adc/stm32-dfsdm-adc.ko] undefined!
Add a dependency on HAS_DMA to fix this.
Fixes: e2e6771c64625165 ("IIO: ADC: add STM32 DFSDM sigma delta ADC support")
Signed-off-by: Geert Uytterhoeven <geert@...ux-m68k.org>
---
drivers/iio/adc/Kconfig | 1 +
1 file changed, 1 insertion(+)
diff --git a/drivers/iio/adc/Kconfig b/drivers/iio/adc/Kconfig
index 39e3b345a6c84033..d976c64107c8e9fd 100644
--- a/drivers/iio/adc/Kconfig
+++ b/drivers/iio/adc/Kconfig
@@ -683,6 +683,7 @@ config STM32_DFSDM_CORE
config STM32_DFSDM_ADC
tristate "STMicroelectronics STM32 dfsdm adc"
depends on (ARCH_STM32 && OF) || COMPILE_TEST
+ depends on HAS_DMA
select STM32_DFSDM_CORE
select REGMAP_MMIO
select IIO_BUFFER_HW_CONSUMER
--
2.7.4
Powered by blists - more mailing lists