mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-28 02:32:09 -04:00
ARM: Orion: fix driver probe error handling with respect to clk
The clk patches added code to get and enable clocks in the respective driver probe functions. If the probe function failed for some reason after enabling the clock, the clock was not disabled again in many cases. Signed-off-by: Simon Baatz <[email protected]> Signed-off-by: Andrew Lumm <[email protected]>
This commit is contained in:
parent
30e0f58035
commit
baffab28b1
6 changed files with 29 additions and 1 deletions
|
|
@ -839,6 +839,10 @@ out:
|
|||
if (r)
|
||||
release_resource(r);
|
||||
if (mmc)
|
||||
if (!IS_ERR_OR_NULL(host->clk)) {
|
||||
clk_disable_unprepare(host->clk);
|
||||
clk_put(host->clk);
|
||||
}
|
||||
mmc_free_host(mmc);
|
||||
|
||||
return ret;
|
||||
|
|
|
|||
Loading…
Reference in a new issue