usb: dwc3: core: add phy cleanup for probe error handling
authorLi Jun <jun.li@nxp.com>
Tue, 28 Jul 2020 12:42:41 +0000 (20:42 +0800)
committerFelipe Balbi <balbi@kernel.org>
Fri, 2 Oct 2020 06:57:42 +0000 (09:57 +0300)
commit03c1fd622f72c7624c81b64fdba4a567ae5ee9cb
tree15f0b5ee482820ffd2b6e94930d253611b97b994
parent266d0493900ac5d6a21cdbe6b1624ed2da94d47a
usb: dwc3: core: add phy cleanup for probe error handling

Add the phy cleanup if dwc3 mode init fail, which is the missing part of
de-init for dwc3 core init.

Fixes: c499ff71ff2a ("usb: dwc3: core: re-factor init and exit paths")
Cc: <stable@vger.kernel.org>
Signed-off-by: Li Jun <jun.li@nxp.com>
Signed-off-by: Felipe Balbi <balbi@kernel.org>
drivers/usb/dwc3/core.c