davinci: Correct return value of edma_alloc_channel api
authorSudhakar Rajashekhara <sudhakar.raj@ti.com>
Wed, 6 Jan 2010 11:58:36 +0000 (17:28 +0530)
committerKevin Hilman <khilman@deeprootsystems.com>
Thu, 4 Feb 2010 21:30:00 +0000 (13:30 -0800)
commit0e6cb8d296308a75e4047fabc752731ff7836182
tree837cebf1cbe0ce6708b79b250b4d17c05e5c9d11
parent77a92c710b65864fe07491864f3bbac9fbac51bc
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>
arch/arm/mach-davinci/dma.c