]> git.proxmox.com Git - mirror_ubuntu-hirsute-kernel.git/commitdiff
phy: ingenic: Fix a typo in ingenic_usb_phy_probe()
authorWei Yongjun <weiyongjun1@huawei.com>
Fri, 5 Mar 2021 03:49:33 +0000 (03:49 +0000)
committerKelsey Skunberg <kelsey.skunberg@canonical.com>
Mon, 24 May 2021 23:46:22 +0000 (17:46 -0600)
BugLink: https://bugs.launchpad.net/bugs/1929455
[ Upstream commit 446c200ee3e8f6faf189ef6f25a0f5bb294afae4 ]

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>
Signed-off-by: Sasha Levin <sashal@kernel.org>
Signed-off-by: Kamal Mostafa <kamal@canonical.com>
Signed-off-by: Kelsey Skunberg <kelsey.skunberg@canonical.com>
drivers/phy/ingenic/phy-ingenic-usb.c

index 4d1587d8228613593d73f81165d1c7529bdffac2..878cd4cbb91af0720b3bfafaff4bf4c07cf46487 100644 (file)
@@ -375,8 +375,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);