Skip to content

Commit

Permalink
usb: chipidea: tegra: Silence deferred probe error
Browse files Browse the repository at this point in the history
Silence deferred probe error caused by the PHY driver which is probed
later than the ChipIdea driver.

Signed-off-by: Dmitry Osipenko <digetx@gmail.com>
Link: https://lore.kernel.org/r/20210314203927.2572-1-digetx@gmail.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
  • Loading branch information
Dmitry Osipenko authored and Greg Kroah-Hartman committed Mar 23, 2021
1 parent 55b74ce commit fb9b31e
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions drivers/usb/chipidea/ci_hdrc_tegra.c
Original file line number Diff line number Diff line change
Expand Up @@ -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)) {
Expand Down

0 comments on commit fb9b31e

Please sign in to comment.