aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/pci/hotplug/ibmphp.h
diff options
context:
space:
mode:
authorAndreas Platschek <[email protected]>2017-12-14 11:50:51 +0000
committerVinod Koul <[email protected]>2017-12-15 04:23:04 +0000
commit2610acf46b9ed528ec2cacd717bc9d354e452b73 (patch)
tree733c7ce8d442dbc9661af16f7e768d35a0f70a53 /drivers/pci/hotplug/ibmphp.h
parentdmaengine: jz4740: disable/unprepare clk if probe fails (diff)
downloadkernel-2610acf46b9ed528ec2cacd717bc9d354e452b73.tar.gz
kernel-2610acf46b9ed528ec2cacd717bc9d354e452b73.zip
dmaengine: fsl-edma: disable clks on all error paths
Previously enabled clks are only disabled if clk_prepare_enable() fails. However, there are other error paths were the previously enabled clocks are not disabled. To fix the problem, fsl_disable_clocks() now takes the number of clocks that shall be disabled + unprepared. For existing calls were all clocks were already successfully prepared + enabled, DMAMUX_NR is passed to disable + unprepare all clocks. In error paths were only some clocks were successfully prepared + enabled the loop counter is passed, in order to disable + unprepare all successfully prepared + enabled clocks. Found by Linux Driver Verification project (linuxtesting.org). Signed-off-by: Andreas Platschek <[email protected]> Signed-off-by: Vinod Koul <[email protected]>
Diffstat (limited to 'drivers/pci/hotplug/ibmphp.h')
0 files changed, 0 insertions, 0 deletions