usb: musb: core: fix failure path
authorMing Lei <ming.lei@canonical.com>
Fri, 4 Jan 2013 15:13:06 +0000 (23:13 +0800)
committerFelipe Balbi <balbi@ti.com>
Thu, 17 Jan 2013 13:45:44 +0000 (15:45 +0200)
commit681d1e8761ca773967bce9bd1bb2896f07279551
treeb2b767add004f7014a43f224153876dc10ae23bc
parenta70b84421be5eebde59b0c9e15d20f316e1fbea9
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>
drivers/usb/musb/musb_core.c