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

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
Loading
Loading
Loading
Loading
+3 −1
Original line number Diff line number Diff line
@@ -590,7 +590,9 @@ static int dwc3_meson_g12a_probe(struct platform_device *pdev)
	/* Get dr_mode */
	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 */
	for (i = 0 ; i < PHY_COUNT ; ++i) {