iio: adc: TI_AM335X_ADC should depend on HAS_DMA
authorGeert Uytterhoeven <geert@linux-m68k.org>
Wed, 14 Dec 2016 12:30:24 +0000 (13:30 +0100)
committerJonathan Cameron <jic23@kernel.org>
Fri, 30 Dec 2016 16:37:48 +0000 (16:37 +0000)
commitb1448ea9cd95868e3e91313b643818d18917b382
tree5fd1495efb9118a6a2dc88df5a8ae2a8da7819a1
parent01d1f7a99e457952aa51849ed7c1cc4ced7bca4b
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.

Signed-off-by: Geert Uytterhoeven <geert@linux-m68k.org>
Fixes: f438b9da (" drivers: iio: ti_am335x_adc: add dma support")
Cc: <stable@vger.kernel.org>
Signed-off-by: Jonathan Cameron <jic23@kernel.org>
drivers/iio/adc/Kconfig