mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-30 03:27:44 -04:00
usb: musb: core: fix failure path
In the fail1~fail5 failure path, pm_runtime_disable() should be called to avoid 'Unbalanced pm_runtime_enable' error in next probe() which may be triggered by defer probe or next 'modprobe musb_hdrc'. Cc: Sebastian Andrzej Siewior <[email protected]> Cc: <[email protected]> v3.8 Signed-off-by: Ming Lei <[email protected]> Signed-off-by: Felipe Balbi <[email protected]>
This commit is contained in:
parent
a70b84421b
commit
681d1e8761
1 changed files with 1 additions and 0 deletions
|
|
@ -1993,6 +1993,7 @@ fail2:
|
|||
musb_platform_exit(musb);
|
||||
|
||||
fail1:
|
||||
pm_runtime_disable(musb->controller);
|
||||
dev_err(musb->controller,
|
||||
"musb_init_controller failed with status %d\n", status);
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue