ARM: OMAP: add deprecation message for legacy OMAP DMA API
authorRussell King <rmk+kernel@arm.linux.org.uk>
Sat, 7 Jun 2014 09:47:36 +0000 (10:47 +0100)
committerRussell King <rmk+kernel@arm.linux.org.uk>
Tue, 1 Jul 2014 14:00:26 +0000 (15:00 +0100)
The legacy OMAP DMA API is now deprecated; all remaining users should
now convert over ASAP to using the DMA engine API instead of the OMAP
private API.

Acked-by: Tony Lindgren <tony@atomide.com>
Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
arch/arm/plat-omap/dma.c

index b5608b1f9fbdf5da32bf354643c1c842a755df83..1c98659bbf89e03168e65c22ac2e5836fa3c982f 100644 (file)
@@ -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) {