Commit 8f5bc1ec authored by Neil Armstrong's avatar Neil Armstrong Committed by Felipe Balbi

usb: dwc3: meson-g12a: check return of dwc3_meson_g12a_usb_init

The dwc3_meson_g12a_usb_init function can return an error, check it.

Fixes: c9999337 ("usb: dwc3: Add Amlogic G12A DWC3 glue")
Reviewed-by: default avatarMartin Blumenstingl <martin.blumenstingl@googlemail.com>
Signed-off-by: default avatarNeil Armstrong <narmstrong@baylibre.com>
Signed-off-by: default avatarFelipe Balbi <balbi@kernel.org>
parent 6d9fa35a
...@@ -590,7 +590,9 @@ static int dwc3_meson_g12a_probe(struct platform_device *pdev) ...@@ -590,7 +590,9 @@ static int dwc3_meson_g12a_probe(struct platform_device *pdev)
/* Get dr_mode */ /* Get dr_mode */
priv->otg_mode = usb_get_dr_mode(dev); priv->otg_mode = usb_get_dr_mode(dev);
dwc3_meson_g12a_usb_init(priv); ret = dwc3_meson_g12a_usb_init(priv);
if (ret)
goto err_disable_clks;
/* Init PHYs */ /* Init PHYs */
for (i = 0 ; i < PHY_COUNT ; ++i) { for (i = 0 ; i < PHY_COUNT ; ++i) {
......
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