]> Git Repo - linux.git/commitdiff
phy: qcom: phy-qcom-m31: fix wrong pointer pass to PTR_ERR()
authorYang Yingliang <[email protected]>
Thu, 24 Aug 2023 09:13:45 +0000 (17:13 +0800)
committerVinod Koul <[email protected]>
Thu, 21 Sep 2023 14:04:59 +0000 (16:04 +0200)
It should be 'qphy->vreg' passed to PTR_ERR() when devm_regulator_get() fails.

Fixes: 08e49af50701 ("phy: qcom: Introduce M31 USB PHY driver")
Signed-off-by: Yang Yingliang <[email protected]>
Reviewed-by: Varadarajan Narayanan <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Vinod Koul <[email protected]>
drivers/phy/qualcomm/phy-qcom-m31.c

index ed08072ca032cac30976f0ce4d3c34bb5748ca68..99d570f4142a4227898d691cf2184ee619122093 100644 (file)
@@ -256,7 +256,7 @@ static int m31usb_phy_probe(struct platform_device *pdev)
 
        qphy->vreg = devm_regulator_get(dev, "vdda-phy");
        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");
 
        phy_set_drvdata(qphy->phy, qphy);
This page took 0.074479 seconds and 4 git commands to generate.