Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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: 31de313dfdcf ("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>

authored by

Wei Yongjun and committed by
Vinod Koul
446c200e b976c987

+2 -2
+2 -2
drivers/phy/ingenic/phy-ingenic-usb.c
··· 352 352 } 353 353 354 354 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); 357 357 358 358 phy_set_drvdata(priv->phy, priv); 359 359