dmaengine: pl330: Remove pl330_chan_ctrl()
authorLars-Peter Clausen <lars@metafoo.de>
Sun, 6 Jul 2014 18:32:32 +0000 (20:32 +0200)
committerVinod Koul <vinod.koul@intel.com>
Tue, 15 Jul 2014 16:31:04 +0000 (22:01 +0530)
commitc26939e5204c533b9348cdd0b4155758f9276df1
tree3adefe316c92b0d616f21451bcb2e4861d69a801
parent8ed30a14265fc2ebace02ea321c463facedfac17
dmaengine: pl330: Remove pl330_chan_ctrl()

The pl330_chan_ctrl() function has 3 internal code paths which, except for the
locking, do not share any code outside of their sections. One code path is never
exercised and can be removed. The other two are mostly just forwards to the
_start() and _stop() calls. This patch modifies the code to instead of going via
pl330_chan_ctrl() to call _start() and _stop() directly. This allows to
completely remove pl330_chan_ctrl().

Signed-off-by: Lars-Peter Clausen <lars@metafoo.de>
Signed-off-by: Vinod Koul <vinod.koul@intel.com>
drivers/dma/pl330.c