]> git.karo-electronics.de Git - karo-tx-linux.git/commit
dmaengine: fsl-edma: Fix clock handling error paths
authorPeter Griffin <peter.griffin@linaro.org>
Tue, 7 Jun 2016 17:38:34 +0000 (18:38 +0100)
committerVinod Koul <vinod.koul@intel.com>
Tue, 21 Jun 2016 16:04:59 +0000 (21:34 +0530)
commit5e2fe1e7c2780651be85cbab0d065112f5fb4649
tree51cef13ed7cbbdff954f8a9eb9eaeb650f7be55f
parent1a695a905c18548062509178b98bc91e67510864
dmaengine: fsl-edma: Fix clock handling error paths

Currently fsl-edma doesn't clk_disable_unprepare()
its clocks on error conditions. This patch adds a
fsl_disable_clocks helper for this, and also only
disables clocks which were enabled if encountering
an error whilst enabling clocks.

Signed-off-by: Peter Griffin <peter.griffin@linaro.org>
Signed-off-by: Vinod Koul <vinod.koul@intel.com>
drivers/dma/fsl-edma.c