All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] iio: adc: STM32_DFSDM_ADC should depend on HAS_DMA
@ 2018-01-30 13:21 Geert Uytterhoeven
  2018-01-30 15:03   ` Mark Brown
  0 siblings, 1 reply; 7+ messages in thread
From: Geert Uytterhoeven @ 2018-01-30 13:21 UTC (permalink / raw)
  To: Jonathan Cameron, Arnaud Pouliquen, Mark Brown
  Cc: linux-iio, alsa-devel, linux-kernel, Geert Uytterhoeven

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@linux-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

^ permalink raw reply related	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2018-01-30 16:35 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-01-30 13:21 [PATCH] iio: adc: STM32_DFSDM_ADC should depend on HAS_DMA Geert Uytterhoeven
2018-01-30 15:03 ` Mark Brown
2018-01-30 15:03   ` Mark Brown
2018-01-30 15:31   ` Geert Uytterhoeven
2018-01-30 15:31     ` Geert Uytterhoeven
2018-01-30 16:35     ` Mark Brown
2018-01-30 16:35       ` Mark Brown

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.