usb: dwc3: Fix error handling for core init
authorVivek Gautam <vivek.gautam@codeaurora.org>
Fri, 21 Oct 2016 10:51:07 +0000 (16:21 +0530)
committerFelipe Balbi <felipe.balbi@linux.intel.com>
Mon, 31 Oct 2016 09:14:27 +0000 (11:14 +0200)
commit9b9d7cdd0a20a8c26a022604580f93516ad69c36
tree016e7778cf243c24b657f2c3ad56796761c3243a
parenta909d3e636995ba7c349e2ca5dbb528154d4ac30
usb: dwc3: Fix error handling for core init

Fixing the sequence of events in dwc3_core_init() error exit path.
dwc3_core_exit() call is also removed from the error path since,
whatever it's doing is already done.

Fixes: c499ff7 usb: dwc3: core: re-factor init and exit paths
Cc: Felipe Balbi <felipe.balbi@linux.intel.com>
Cc: Greg KH <gregkh@linuxfoundation.org>
Cc: Stable <stable@vger.kernel.org> # 4.8+
Signed-off-by: Vivek Gautam <vivek.gautam@codeaurora.org>
Signed-off-by: Felipe Balbi <felipe.balbi@linux.intel.com>
drivers/usb/dwc3/core.c