aboutsummaryrefslogtreecommitdiffstats
path: root/arch/arm/mach-davinci
diff options
context:
space:
mode:
authorSudhakar Rajashekhara <sudhakar.raj@ti.com>2010-01-06 06:58:36 -0500
committerKevin Hilman <khilman@deeprootsystems.com>2010-02-04 16:30:00 -0500
commit0e6cb8d296308a75e4047fabc752731ff7836182 (patch)
tree837cebf1cbe0ce6708b79b250b4d17c05e5c9d11 /arch/arm/mach-davinci
parent77a92c710b65864fe07491864f3bbac9fbac51bc (diff)
davinci: Correct return value of edma_alloc_channel api
Currently, edma_alloc_channel api is returning the channel number without prepending the controller on which the channel was allocated. So, if a channel is allocated on 2nd controller, calls subsequent to edma_alloc_channel would never know that channel was allocated on the 2nd controller, and continue to operate on 1st controller, resulting in edma failure. This patch fixes this issue. Signed-off-by: Sudhakar Rajashekhara <sudhakar.raj@ti.com> Signed-off-by: Kevin Hilman <khilman@deeprootsystems.com>
Diffstat (limited to 'arch/arm/mach-davinci')
-rw-r--r--arch/arm/mach-davinci/dma.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/arm/mach-davinci/dma.c b/arch/arm/mach-davinci/dma.c
index 648fbb760ae1..5a71f4d1c5c5 100644
--- a/arch/arm/mach-davinci/dma.c
+++ b/arch/arm/mach-davinci/dma.c
@@ -642,7 +642,7 @@ int edma_alloc_channel(int channel,
642 642
643 map_dmach_queue(ctlr, channel, eventq_no); 643 map_dmach_queue(ctlr, channel, eventq_no);
644 644
645 return channel; 645 return EDMA_CTLR_CHAN(ctlr, channel);
646} 646}
647EXPORT_SYMBOL(edma_alloc_channel); 647EXPORT_SYMBOL(edma_alloc_channel);
648 648