Skip to contentSkip to conversation

iio: adc: TI_AM335X_ADC should depend on HAS_DMA

PATCH Applied Geert Uytterhoeven 2 participants 2 messages Dec 14, 2016 – Dec 30, 2016 IIO

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 iio: adc: TI_AM335X_ADC should depend on HAS_DMA

If NO_DMA=y:

    ERROR: "bad_dma_ops" [drivers/iio/adc/ti_am335x_adc.ko] undefined!

Add a dependency on HAS_DMA to fix this.

---
 drivers/iio/adc/Kconfig | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/iio/adc/Kconfig +1 -1
index 38bc319904c4c299..9c8b558ba19ecb03 100644
@@ -561,7 +561,7 @@ config TI_ADS8688
 
 config TI_AM335X_ADC
 	tristate "TI's AM335X ADC driver"
-	depends on MFD_TI_AM335X_TSCADC
+	depends on MFD_TI_AM335X_TSCADC && HAS_DMA
 	select IIO_BUFFER
 	select IIO_KFIFO_BUF
 	help
Signature · 1 line
1.9.1
maintainer Applied
#1 lore raw
Quoted 7 lines · Geert Uytterhoeven

If NO_DMA=y:

    ERROR: "bad_dma_ops" [drivers/iio/adc/ti_am335x_adc.ko] undefined!

Add a dependency on HAS_DMA to fix this.

Applied to the fixes-togreg-post-rc1 branch of iio.git (will unwind this fun branch shortly now we are post rc1) and marked for stable with an appropriate fixes tag added.

Thanks,

Jonathan

Quoted 18 lines
---
 drivers/iio/adc/Kconfig | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/iio/adc/Kconfig +1 -1
index 38bc319904c4c299..9c8b558ba19ecb03 100644
@@ -561,7 +561,7 @@ config TI_ADS8688
 
 config TI_AM335X_ADC
 	tristate "TI's AM335X ADC driver"
-	depends on MFD_TI_AM335X_TSCADC
+	depends on MFD_TI_AM335X_TSCADC && HAS_DMA
 	select IIO_BUFFER
 	select IIO_KFIFO_BUF
 	help