diff options
author | Ming Lei <ming.lei@canonical.com> | 2013-01-04 19:13:06 +0400 |
---|---|---|
committer | Felipe Balbi <balbi@ti.com> | 2013-01-17 17:45:44 +0400 |
commit | 681d1e8761ca773967bce9bd1bb2896f07279551 (patch) | |
tree | b2b767add004f7014a43f224153876dc10ae23bc | |
parent | a70b84421be5eebde59b0c9e15d20f316e1fbea9 (diff) | |
download | linux-681d1e8761ca773967bce9bd1bb2896f07279551.tar.xz |
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 <sebastian@breakpoint.cc>
Cc: <stable@vger.kernel.org> v3.8
Signed-off-by: Ming Lei <ming.lei@canonical.com>
Signed-off-by: Felipe Balbi <balbi@ti.com>
-rw-r--r-- | drivers/usb/musb/musb_core.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/usb/musb/musb_core.c b/drivers/usb/musb/musb_core.c index f1c6c5470b92..8219eb5abec0 100644 --- a/drivers/usb/musb/musb_core.c +++ b/drivers/usb/musb/musb_core.c @@ -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); |