Skip to content

Commit

Permalink
phy: ingenic: Fix a typo in ingenic_usb_phy_probe()
Browse files Browse the repository at this point in the history
Fix the return value check typo which testing the wrong variable
in ingenic_usb_phy_probe().

Fixes: 31de313 ("PHY: Ingenic: Add USB PHY driver using generic PHY framework.")
Reported-by: Hulk Robot <[email protected]>
Signed-off-by: Wei Yongjun <[email protected]>
Acked-by: Paul Cercueil <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Vinod Koul <[email protected]>
  • Loading branch information
Wei Yongjun authored and vinodkoul committed Mar 30, 2021
1 parent b976c98 commit 446c200
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions drivers/phy/ingenic/phy-ingenic-usb.c
Original file line number Diff line number Diff line change
Expand Up @@ -352,8 +352,8 @@ static int ingenic_usb_phy_probe(struct platform_device *pdev)
}

priv->phy = devm_phy_create(dev, NULL, &ingenic_usb_phy_ops);
if (IS_ERR(priv))
return PTR_ERR(priv);
if (IS_ERR(priv->phy))
return PTR_ERR(priv->phy);

phy_set_drvdata(priv->phy, priv);

Expand Down

0 comments on commit 446c200

Please sign in to comment.