UPSTREAM: usb: dwc2: Proper cleanup on dr_mode failure
authorJohn Youn <johnyoun@synopsys.com>
Thu, 28 Apr 2016 03:20:56 +0000 (20:20 -0700)
committerHuang, Tao <huangtao@rock-chips.com>
Tue, 3 Jan 2017 10:48:35 +0000 (18:48 +0800)
commit0138d6e4886c3658fcc546bc4f2ccb1328a311c0
tree9a8206dfa47a58dc6e1e1c2f3bd0449b7f67fec9
parent970b192ff50cd442198f8767c56ec63a8e2e8696
UPSTREAM: usb: dwc2: Proper cleanup on dr_mode failure

Cleanup in probe if we fail to get dr_mode.

Change-Id: I8b2f1cf210b9baa6fc81bddd9b64be1bf5e657fb
Signed-off-by: John Youn <johnyoun@synopsys.com>
Signed-off-by: Felipe Balbi <felipe.balbi@linux.intel.com>
Signed-off-by: Huang, Tao <huangtao@rock-chips.com>
(cherry picked from commit a6ef3e02542a33fb705e6977221deb0292b27398)
drivers/usb/dwc2/platform.c