]> git.baikalelectronics.ru Git - kernel.git/commit
usb: dwc3: imx8mp: fix error return code in dwc3_imx8mp_probe()
authorZhen Lei <thunder.leizhen@huawei.com>
Sat, 8 May 2021 01:53:10 +0000 (09:53 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 10 May 2021 12:58:41 +0000 (14:58 +0200)
commit75289bf43634914477f5df83db54f95aea6367af
tree7143eaa93fda70f5263d9d8054bc44ef9990c34d
parent60f80a47e8e3081cfcfe30cbbfac83a79ea39198
usb: dwc3: imx8mp: fix error return code in dwc3_imx8mp_probe()

Fix to return a negative error code from the error handling case instead
of 0, as done elsewhere in this function.

Fixes: d1e235c70851 ("usb: dwc3: add imx8mp dwc3 glue layer driver")
Reported-by: Hulk Robot <hulkci@huawei.com>
Acked-by: Felipe Balbi <balbi@kernel.org>
Signed-off-by: Zhen Lei <thunder.leizhen@huawei.com>
Cc: stable <stable@vger.kernel.org>
Link: https://lore.kernel.org/r/20210508015310.1627-1-thunder.leizhen@huawei.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/usb/dwc3/dwc3-imx8mp.c