OMAP: add deprecation message for legacy omap DMA API
Subsystems (2)
PATCH 1/1 OMAP: add deprecation message for legacy omap DMA API
Signed-off-by Russell King <[email protected]>
--- arch/arm/plat-omap/dma.c | 2 ++ 1 file changed, 2 insertions(+)
arch/arm/plat-omap/dma.c +2 -0
@@ -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 ) {
Signature · 1 line
1.8.3.1
PATCH 1/1 OMAP: add deprecation message for legacy omap DMA API
Quoted 1 line · Russell King
Signed-off-by Russell King <[email protected]>
Acked-by Tony Lindgren <[email protected]>
Quoted 20 lines
--- arch/arm/plat-omap/dma.c | 2 ++ 1 file changed, 2 insertions(+)arch/arm/plat-omap/dma.c +2
-0@@ -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 ) {Signature · 1 line
1.8.3.1