Commit 0b2b149e authored by Zhen Lei's avatar Zhen Lei Committed by Greg Kroah-Hartman

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: 6dd25659 ("usb: dwc3: add imx8mp dwc3 glue layer driver")
Reported-by: default avatarHulk Robot <hulkci@huawei.com>
Acked-by: default avatarFelipe Balbi <balbi@kernel.org>
Signed-off-by: default avatarZhen Lei <thunder.leizhen@huawei.com>
Cc: stable <stable@vger.kernel.org>
Link: https://lore.kernel.org/r/20210508015310.1627-1-thunder.leizhen@huawei.comSigned-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent b9699208
...@@ -167,6 +167,7 @@ static int dwc3_imx8mp_probe(struct platform_device *pdev) ...@@ -167,6 +167,7 @@ static int dwc3_imx8mp_probe(struct platform_device *pdev)
dwc3_np = of_get_compatible_child(node, "snps,dwc3"); dwc3_np = of_get_compatible_child(node, "snps,dwc3");
if (!dwc3_np) { if (!dwc3_np) {
err = -ENODEV;
dev_err(dev, "failed to find dwc3 core child\n"); dev_err(dev, "failed to find dwc3 core child\n");
goto disable_rpm; goto disable_rpm;
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment