davinci: Keep count of channel controllers on a platform
authorSudhakar Rajashekhara <sudhakar.raj@ti.com>
Wed, 6 Jan 2010 11:58:44 +0000 (17:28 +0530)
committerKevin Hilman <khilman@deeprootsystems.com>
Thu, 4 Feb 2010 21:30:00 +0000 (13:30 -0800)
commit2d517508060c22ef371a61495773cf890def291a
tree8d98b7e2b3c63eab7b1fe78bb97d87e852a2a45f
parent0e6cb8d296308a75e4047fabc752731ff7836182
davinci: Keep count of channel controllers on a platform

Some architectures have only one channel controller, but the
edma_alloc_channel api loops twice to findout the free channel
available in EDMA_CHANNEL_ANY case. A new variable has been
introduced to keep count of number of channel controllers being
used on a particular architecture.

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