]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitb1acf28911806d7dcc9fb11282f08dfc25b3abb2
tree086fe66462a5cf2ec0549ff2d86f23156c5be9c2
parentf886b80047f321e9878166b0310bb002aeb8feb7
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: a7f5785d3775 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