[PATCH] OMAP: add deprecation message for legacy omap DMA API

Tony Lindgren tony at atomide.com
Fri Jun 13 04:12:06 PDT 2014


* Russell King <rmk+kernel at arm.linux.org.uk> [140613 03:36]:
> Signed-off-by: Russell King <rmk+kernel at arm.linux.org.uk>

Acked-by: Tony Lindgren <tony at atomide.com>

> ---
>  arch/arm/plat-omap/dma.c | 2 ++
>  1 file changed, 2 insertions(+)
> 
> diff --git a/arch/arm/plat-omap/dma.c b/arch/arm/plat-omap/dma.c
> index b5608b1f9fbd..1c98659bbf89 100644
> --- a/arch/arm/plat-omap/dma.c
> +++ b/arch/arm/plat-omap/dma.c
> @@ -698,6 +698,8 @@ int omap_request_dma(int dev_id, const char *dev_name,
>  	unsigned long flags;
>  	struct omap_dma_lch *chan;
>  
> +	WARN(strcmp(dev_name, "DMA engine"), "Using deprecated platform DMA API - please update to DMA engine");
> +
>  	spin_lock_irqsave(&dma_chan_lock, flags);
>  	for (ch = 0; ch < dma_chan_count; ch++) {
>  		if (free_ch == -1 && dma_chan[ch].dev_id == -1) {
> -- 
> 1.8.3.1
> 



More information about the linux-arm-kernel mailing list