diff options
author | Russell King <rmk+kernel@arm.linux.org.uk> | 2014-06-07 05:47:36 -0400 |
---|---|---|
committer | Russell King <rmk+kernel@arm.linux.org.uk> | 2014-07-01 10:00:26 -0400 |
commit | 5c65c360da06635f985684fa0ab41027660d0804 (patch) | |
tree | 697ee493d9da723f1b957c741215432c1e5d3207 /arch/arm/plat-omap | |
parent | 4c834452aad01531db949414f94f817a86348d59 (diff) |
ARM: OMAP: add deprecation message for legacy OMAP DMA API
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>
Diffstat (limited to 'arch/arm/plat-omap')
-rw-r--r-- | arch/arm/plat-omap/dma.c | 2 |
1 files changed, 2 insertions, 0 deletions
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, | |||
698 | unsigned long flags; | 698 | unsigned long flags; |
699 | struct omap_dma_lch *chan; | 699 | struct omap_dma_lch *chan; |
700 | 700 | ||
701 | WARN(strcmp(dev_name, "DMA engine"), "Using deprecated platform DMA API - please update to DMA engine"); | ||
702 | |||
701 | spin_lock_irqsave(&dma_chan_lock, flags); | 703 | spin_lock_irqsave(&dma_chan_lock, flags); |
702 | for (ch = 0; ch < dma_chan_count; ch++) { | 704 | for (ch = 0; ch < dma_chan_count; ch++) { |
703 | if (free_ch == -1 && dma_chan[ch].dev_id == -1) { | 705 | if (free_ch == -1 && dma_chan[ch].dev_id == -1) { |