Skip to content

Commit 95055be

Browse files
Yang Yingliangvinodkoul
authored andcommitted
phy: qcom: phy-qcom-m31: fix wrong pointer pass to PTR_ERR()
It should be 'qphy->vreg' passed to PTR_ERR() when devm_regulator_get() fails. Fixes: 08e49af ("phy: qcom: Introduce M31 USB PHY driver") Signed-off-by: Yang Yingliang <yangyingliang@huawei.com> Reviewed-by: Varadarajan Narayanan <quic_varada@quicinc.com> Link: https://lore.kernel.org/r/20230824091345.1072650-1-yangyingliang@huawei.com Signed-off-by: Vinod Koul <vkoul@kernel.org>
1 parent 7936378 commit 95055be

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/phy/qualcomm/phy-qcom-m31.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -299,7 +299,7 @@ static int m31usb_phy_probe(struct platform_device *pdev)
299299

300300
qphy->vreg = devm_regulator_get(dev, "vdda-phy");
301301
if (IS_ERR(qphy->vreg))
302-
return dev_err_probe(dev, PTR_ERR(qphy->phy),
302+
return dev_err_probe(dev, PTR_ERR(qphy->vreg),
303303
"failed to get vreg\n");
304304

305305
phy_set_drvdata(qphy->phy, qphy);

0 commit comments

Comments
 (0)