Commit 5f7cd740 authored by Yang Yingliang's avatar Yang Yingliang Committed by Vinod Koul

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: 08e49af5 ("phy: qcom: Introduce M31 USB PHY driver")
Signed-off-by: default avatarYang Yingliang <yangyingliang@huawei.com>
Reviewed-by: default avatarVaradarajan Narayanan <quic_varada@quicinc.com>
Link: https://lore.kernel.org/r/20230824091345.1072650-1-yangyingliang@huawei.comSigned-off-by: default avatarVinod Koul <vkoul@kernel.org>
parent 211de968
...@@ -256,7 +256,7 @@ static int m31usb_phy_probe(struct platform_device *pdev) ...@@ -256,7 +256,7 @@ static int m31usb_phy_probe(struct platform_device *pdev)
qphy->vreg = devm_regulator_get(dev, "vdda-phy"); qphy->vreg = devm_regulator_get(dev, "vdda-phy");
if (IS_ERR(qphy->vreg)) if (IS_ERR(qphy->vreg))
return dev_err_probe(dev, PTR_ERR(qphy->phy), return dev_err_probe(dev, PTR_ERR(qphy->vreg),
"failed to get vreg\n"); "failed to get vreg\n");
phy_set_drvdata(qphy->phy, qphy); phy_set_drvdata(qphy->phy, qphy);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment