DMA: Move dma_pool_destroy to free channel
authorShreyas Neerebailoor <shreyasx.neerebailoor@intel.com>
Fri, 20 Apr 2012 10:22:43 +0000 (15:52 +0530)
committerbuildbot <buildbot@intel.com>
Thu, 26 Apr 2012 06:21:57 +0000 (23:21 -0700)
commit698e83d1b835ea95a907620a73a08a0d2aa9b364
treead4f40d6766430f07a37434f120ffb3901ebc2c0
parent836f9cdcd4374828e05e24ef7ccdf089dd2a88a8
DMA: Move dma_pool_destroy to free channel

BZ: 31979

The DMA pool for LLI is destroyed in atomic context.
This function might sleep and it should not be called in atomic
context.

Moved the destroying of the DMA pool to free channel resource
function.

Change-Id: I7624a69de3d8a3815fb0b3733cf441a246aea045
Signed-off-by: Shreyas Neerebailoor <shreyasx.neerebailoor@intel.com>
Reviewed-on: http://android.intel.com:8080/44152
Reviewed-by: Abdullah, Omair M <omair.m.abdullah@intel.com>
Reviewed-by: Bensaid, Selma <selma.bensaid@intel.com>
Reviewed-by: Babu, Ramesh <ramesh.babu@intel.com>
Reviewed-by: Koul, Vinod <vinod.koul@intel.com>
Reviewed-by: Gupta, ArvindX K <arvindx.k.gupta@intel.com>
Reviewed-by: M, Arulselvan <arulselvan.m@intel.com>
Tested-by: M, Arulselvan <arulselvan.m@intel.com>
Reviewed-by: buildbot <buildbot@intel.com>
Tested-by: buildbot <buildbot@intel.com>
drivers/dma/intel_mid_dma.c
drivers/dma/intel_mid_dma_regs.h