DaVinci: EDMA: Fix Bug while obtaining contiguous params
commitcc93fc3f34552e791e480ac21a17eceb9c0e26f2
authorSandeep Paulraj <s-paulraj@ti.com>
Sun, 20 Sep 2009 17:47:03 +0000 (20 13:47 -0400)
committerKevin Hilman <khilman@deeprootsystems.com>
Wed, 25 Nov 2009 18:21:26 +0000 (25 10:21 -0800)
tree26382d737a5c986bd06fc340c85829b162723d09
parentdc4c05a5131d691ccbc06c2e670385127871bdbe
DaVinci: EDMA: Fix Bug while obtaining contiguous params

The reserve_contiguous_params function is used to reserve
a set of contiguous PARAMs. If we do not find a complete
set of contiguous PARAMs, the functions still has to free
every PARAM that it found to be free in the process of finding a
complete set and thus marked as "in use".
This patch mainly deals with correctly handling the
freeing of PARAMs.

Signed-off-by: Sandeep Paulraj <s-paulraj@ti.com>
Signed-off-by: Kevin Hilman <khilman@deeprootsystems.com>
arch/arm/mach-davinci/dma.c