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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sun, 25 Feb 2018 10:05:49 +0000 (11:05 +0100)
commitb3e60306161cedda47cb961d27632c9b083aeb8e
tree024b17caa96b3906cd7045a4c2de9ef76d7c1395
parent5dcc25c233b66c3446a2c249e1a4ed83118f2f0b
dmaengine: jz4740: disable/unprepare clk if probe fails

[ Upstream commit eb9436966fdc84cebdf222952a99898ab46d9bb0 ]

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>
Signed-off-by: Sasha Levin <alexander.levin@microsoft.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/dma/dma-jz4740.c