Skip to content

Commit 446c200

Browse files
Wei Yongjunvinodkoul
authored andcommitted
phy: ingenic: Fix a typo in ingenic_usb_phy_probe()
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 <hulkci@huawei.com> Signed-off-by: Wei Yongjun <weiyongjun1@huawei.com> Acked-by: Paul Cercueil <paul@crapouillou.net> Link: https://lore.kernel.org/r/20210305034933.3240914-1-weiyongjun1@huawei.com Signed-off-by: Vinod Koul <vkoul@kernel.org>
1 parent b976c98 commit 446c200

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

‎drivers/phy/ingenic/phy-ingenic-usb.c‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -352,8 +352,8 @@ static int ingenic_usb_phy_probe(struct platform_device *pdev)
352352
}
353353

354354
priv->phy = devm_phy_create(dev, NULL, &ingenic_usb_phy_ops);
355-
if (IS_ERR(priv))
356-
return PTR_ERR(priv);
355+
if (IS_ERR(priv->phy))
356+
return PTR_ERR(priv->phy);
357357

358358
phy_set_drvdata(priv->phy, priv);
359359

0 commit comments

Comments
 (0)