Skip to contentSkip to conversation

usb: chipidea: tegra: Silence deferred probe error

PATCH New Dmitry Osipenko 1 participant 1 message Mar 14, 2021

Subsystems (3)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 usb: chipidea: tegra: Silence deferred probe error

Silence deferred probe error caused by the PHY driver which is probed later than the ChipIdea driver.

---
 drivers/usb/chipidea/ci_hdrc_tegra.c | 8 +++-----
 1 file changed, 3 insertions(+), 5 deletions(-)
drivers/usb/chipidea/ci_hdrc_tegra.c +3 -5
index 90f2a8b786be..60361141ac04 100644
@@ -285,11 +285,9 @@ static int tegra_usb_probe(struct platform_device *pdev)
 	}
 
 	usb->phy = devm_usb_get_phy_by_phandle(&pdev->dev, "nvidia,phy", 0);
-	if (IS_ERR(usb->phy)) {
-		err = PTR_ERR(usb->phy);
-		dev_err(&pdev->dev, "failed to get PHY: %d\n", err);
-		return err;
-	}
+	if (IS_ERR(usb->phy))
+		return dev_err_probe(&pdev->dev, PTR_ERR(usb->phy),
+				     "failed to get PHY\n");
 
 	usb->clk = devm_clk_get(&pdev->dev, NULL);
 	if (IS_ERR(usb->clk)) {
Signature · 1 line
2.30.2