Commit 6466ba18 authored by Amjad Ouled-Ameur's avatar Amjad Ouled-Ameur Committed by Vinod Koul
Browse files

phy: amlogic: meson8b-usb2: Use dev_err_probe()

parent 2f877271
Loading
Loading
Loading
Loading
+3 −2
Original line number Diff line number Diff line
@@ -265,8 +265,9 @@ static int phy_meson8b_usb2_probe(struct platform_device *pdev)
		return PTR_ERR(priv->clk_usb);

	priv->reset = devm_reset_control_get_optional_shared(&pdev->dev, NULL);
	if (PTR_ERR(priv->reset) == -EPROBE_DEFER)
		return PTR_ERR(priv->reset);
	if (IS_ERR(priv->reset))
		return dev_err_probe(&pdev->dev, PTR_ERR(priv->reset),
				     "Failed to get the reset line");

	priv->dr_mode = of_usb_get_dr_mode_by_phy(pdev->dev.of_node, -1);
	if (priv->dr_mode == USB_DR_MODE_UNKNOWN) {