dmaengine: omap-dma: more consolidation of CCR register setup
authorRussell King <[email protected]>
Tue, 14 Jan 2014 23:58:10 +0000 (23:58 +0000)
committerRussell King <[email protected]>
Thu, 3 Apr 2014 23:32:53 +0000 (00:32 +0100)
commitaa4c5b962a7a03eb6b43b3d2677c3677022c1223
treee3267b6a64076ea5d7fa511db19c5e9fb6f422dd
parent6ddeb6d844596cac13c4a3665c0bd61f074a81a7
dmaengine: omap-dma: more consolidation of CCR register setup

We can move the handling of the DMA synchronisation control out of the
prepare functions; this can be pre-calculated when the DMA channel has
been allocated, so we don't need to duplicate this in both prepare
functions.

Acked-by: Tony Lindgren <[email protected]>
Acked-by: Vinod Koul <[email protected]>
Signed-off-by: Russell King <[email protected]>
drivers/dma/omap-dma.c