Skip to content

Commit

Permalink
iio: adc: TI_AM335X_ADC should depend on HAS_DMA
Browse files Browse the repository at this point in the history
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.

Signed-off-by: Geert Uytterhoeven <geert@linux-m68k.org>
Fixes: f438b9d (" drivers: iio: ti_am335x_adc: add dma support")
Cc: <stable@vger.kernel.org>
Signed-off-by: Jonathan Cameron <jic23@kernel.org>
  • Loading branch information
Geert Uytterhoeven authored and Jonathan Cameron committed Dec 30, 2016
1 parent 01d1f7a commit b1448ea
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/iio/adc/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit b1448ea

Please sign in to comment.