dmaengine: jz4740: disable/unprepare clk if probe fails
authorTobias Jordan <Tobias.Jordan@elektrobit.com>
Wed, 6 Dec 2017 13:28:27 +0000 (14:28 +0100)
committerVinod Koul <vinod.koul@intel.com>
Mon, 11 Dec 2017 03:30:06 +0000 (09:00 +0530)
commiteb9436966fdc84cebdf222952a99898ab46d9bb0
tree086fe66462a5cf2ec0549ff2d86f23156c5be9c2
parent6f6a23a213be51728502b88741ba6a10cda2441d
dmaengine: jz4740: disable/unprepare clk if probe fails

in error path of jz4740_dma_probe(), call clk_disable_unprepare() to clean
up.

Found by Linux Driver Verification project (linuxtesting.org).

Fixes: 25ce6c35fea0 MIPS: jz4740: Remove custom DMA API
Signed-off-by: Tobias Jordan <Tobias.Jordan@elektrobit.com>
Signed-off-by: Vinod Koul <vinod.koul@intel.com>
drivers/dma/dma-jz4740.c