All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] iio: adc: TI_AM335X_ADC should depend on HAS_DMA
@ 2016-12-14 12:30 Geert Uytterhoeven
  2016-12-30 16:39 ` Jonathan Cameron
  0 siblings, 1 reply; 2+ messages in thread
From: Geert Uytterhoeven @ 2016-12-14 12:30 UTC (permalink / raw)
  To: Jonathan Cameron, Mugunthan V N, Peter Ujfalusi, Hartmut Knaack,
	Lars-Peter Clausen, Peter Meerwald-Stadler
  Cc: linux-iio, linux-kernel, 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.

Signed-off-by: Geert Uytterhoeven <geert@linux-m68k.org>
---
 drivers/iio/adc/Kconfig | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/iio/adc/Kconfig b/drivers/iio/adc/Kconfig
index 38bc319904c4c299..9c8b558ba19ecb03 100644
--- a/drivers/iio/adc/Kconfig
+++ b/drivers/iio/adc/Kconfig
@@ -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
-- 
1.9.1

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

* Re: [PATCH] iio: adc: TI_AM335X_ADC should depend on HAS_DMA
  2016-12-14 12:30 [PATCH] iio: adc: TI_AM335X_ADC should depend on HAS_DMA Geert Uytterhoeven
@ 2016-12-30 16:39 ` Jonathan Cameron
  0 siblings, 0 replies; 2+ messages in thread
From: Jonathan Cameron @ 2016-12-30 16:39 UTC (permalink / raw)
  To: Geert Uytterhoeven, Mugunthan V N, Peter Ujfalusi,
	Hartmut Knaack, Lars-Peter Clausen, Peter Meerwald-Stadler
  Cc: linux-iio, linux-kernel

On 14/12/16 12:30, Geert Uytterhoeven wrote:
> 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>
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
> ---
>  drivers/iio/adc/Kconfig | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/drivers/iio/adc/Kconfig b/drivers/iio/adc/Kconfig
> index 38bc319904c4c299..9c8b558ba19ecb03 100644
> --- a/drivers/iio/adc/Kconfig
> +++ b/drivers/iio/adc/Kconfig
> @@ -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
> 

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

end of thread, other threads:[~2016-12-30 16:39 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-12-14 12:30 [PATCH] iio: adc: TI_AM335X_ADC should depend on HAS_DMA Geert Uytterhoeven
2016-12-30 16:39 ` Jonathan Cameron

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.