usb: dwc3: omap: fix up error path on probe()
authorFelipe Balbi <balbi@kernel.org>
Mon, 11 Apr 2016 14:12:33 +0000 (17:12 +0300)
committerFelipe Balbi <felipe.balbi@linux.intel.com>
Mon, 18 Apr 2016 09:35:17 +0000 (12:35 +0300)
commit45d49cb706e5d8f0ca5e868118b5d453afbb938f
treea5233adec37bed6c21d5475d072be5a9e5ca02cb
parent138b8638bb43d4b85eeaacde9be9c687cc7e5de7
usb: dwc3: omap: fix up error path on probe()

Even if pm_runtime_get*() fails, we *MUST* call
pm_runtime_put_sync() before disabling PM.

While at it, remove superfluous dwc3_omap_disable_irqs()
in error path.

Signed-off-by: Felipe Balbi <balbi@kernel.org>
[nsekhar@ti.com: patch description updates]
Signed-off-by: Sekhar Nori <nsekhar@ti.com>
Signed-off-by: Roger Quadros <rogerq@ti.com>
Signed-off-by: Felipe Balbi <felipe.balbi@linux.intel.com>
drivers/usb/dwc3/dwc3-omap.c