dmaengine: omap-dma: more consolidation of CCR register setup
authorRussell King <rmk+kernel@arm.linux.org.uk>
Tue, 14 Jan 2014 23:58:10 +0000 (23:58 +0000)
committerRussell King <rmk+kernel@arm.linux.org.uk>
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 <tony@atomide.com>
Acked-by: Vinod Koul <vinod.koul@intel.com>
Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
drivers/dma/omap-dma.c