dma/imx-sdma: move clk_enable out of sdma_request_channel
authorRichard Zhao <richard.zhao@linaro.org>
Fri, 13 Jan 2012 03:09:59 +0000 (11:09 +0800)
committerVinod Koul <vinod.koul@linux.intel.com>
Tue, 31 Jan 2012 03:33:16 +0000 (09:03 +0530)
commitc2c744d3aa48f845626131176772bae2a3c9d5bc
tree91d026175e01deac9c1fda8e311835ecf2048075
parent3bb5e7caf9641b6a532a55cf3a3621ef814f57ee
dma/imx-sdma: move clk_enable out of sdma_request_channel

It makes clk_enable/disable pair more readable, and fix one bug:
sdma_init calls sdma_request_channel, but seems don't know
sdma_request_channel enabled the clock.

Signed-off-by: Richard Zhao <richard.zhao@linaro.org>
Acked-by: Shawn Guo <shawn.guo@linaro.org>
[fixed typo in commit log]
Signed-off-by: Vinod Koul <vinod.koul@linux.intel.com>
drivers/dma/imx-sdma.c