dmaengine: PL08x: get rid of write only pool_ctr and free_txd locking
authorRussell King <rmk+kernel@arm.linux.org.uk>
Sat, 26 May 2012 15:33:39 +0000 (16:33 +0100)
committerRussell King <rmk+kernel@arm.linux.org.uk>
Sun, 1 Jul 2012 13:16:08 +0000 (14:16 +0100)
commit70f3ff434d7fc9a3cea5ebbb8a8d7aaa4c906125
treea8d04cf96ac8a3a61c7c9b712cebb7881bffed6f
parentaa4afb754d42be064ae649b74a599b9d9d04ac57
dmaengine: PL08x: get rid of write only pool_ctr and free_txd locking

The free function says the pl08x lock should be taken before calling
it.  However, the DMA pool allocation/freeing is already properly
locked.  The only thing that would need this is pool_ctr, which
happens to be a write-only variable.

Let's get rid of this, and eliminate any need for additional locking
here.

Acked-by: Linus Walleij <linus.walleij@linaro.org>
Tested-by: Linus Walleij <linus.walleij@linaro.org>
Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
drivers/dma/amba-pl08x.c