usb: dwc3: unregister extcon notify if probe fail
authorMeng Dongyang <daniel.meng@rock-chips.com>
Sun, 25 Sep 2016 07:48:29 +0000 (15:48 +0800)
committerMeng Dongyang <daniel.meng@rock-chips.com>
Sun, 25 Sep 2016 08:12:08 +0000 (16:12 +0800)
commitad23b5c8bd46d9b4ce049e8c6fcec4834940f25b
tree7d2bff7b0c5ec955fc9a8a8b8ba8974775babce9
parent63e8d019d458d6922b39003f4f09124d237cc83f
usb: dwc3: unregister extcon notify if probe fail

When the pointer of hcd is NULL, dwc3 driver will probe again. In this
case the notify sync function will issue "Bad mode in Synchronous Abort
handler detected" error if the extcon notify is not unregisted before
next probe. This patch add unregister extcon notify function and
unregister extcon notify when hcd is NULL.

Change-Id: Id55ce4280518e0c7e36a64133e38189bb4a7d29e
Signed-off-by: Meng Dongyang <daniel.meng@rock-chips.com>
drivers/usb/dwc3/dwc3-rockchip.c