DMAEngine: sirf: lock the shared registers access in sirfsoc_dma_terminate_all
authorBarry Song <Baohua.Song@csr.com>
Fri, 14 Dec 2012 11:06:58 +0000 (11:06 +0000)
committerVinod Koul <vinod.koul@intel.com>
Mon, 28 Jan 2013 09:44:46 +0000 (01:44 -0800)
Just like Russell pointed out in "DMAEngine: sirf: add DMA
pause/resume support" at
http://www.spinics.net/lists/arm-kernel/msg212496.html
here I find sirfsoc_dma_terminate_all() has same problem,
so move the locking to the front of registers access.

Signed-off-by: Barry Song <Baohua.Song@csr.com>
Cc: Russell King <linux@arm.linux.org.uk>
Signed-off-by: Vinod Koul <vinod.koul@intel.com>

No differences found