davinci: Fix edma_alloc_channel api for EDMA_CHANNEL_ANY case
authorSudhakar Rajashekhara <sudhakar.raj@ti.com>
Wed, 6 Jan 2010 11:59:11 +0000 (17:29 +0530)
committerKevin Hilman <khilman@deeprootsystems.com>
Thu, 4 Feb 2010 21:30:01 +0000 (13:30 -0800)
commit447f18f1b4a3e86159353d016dcaac25414b3a42
tree6a7d3c23189ee9e9c4dd53a2be74bc3f68783b63
parent2d517508060c22ef371a61495773cf890def291a
davinci: Fix edma_alloc_channel api for EDMA_CHANNEL_ANY case

Though edma_alloc_channel api was looping through the available
channel controllers in EDMA_CHANNEL_ANY case, it was never
returning the channel for 2nd channel controller, if 1st
channel controller had no free channels. This issue has
been fixed with this patch.

Signed-off-by: Sudhakar Rajashekhara <sudhakar.raj@ti.com>
Signed-off-by: Kevin Hilman <khilman@deeprootsystems.com>
arch/arm/mach-davinci/dma.c