diff options
author | Yang Yingliang <yangyingliang@huawei.com> | 2023-08-24 11:13:45 +0200 |
---|---|---|
committer | Vinod Koul <vkoul@kernel.org> | 2024-02-07 11:20:26 +0100 |
commit | 95055beb067cb30f626fb10f7019737ca7681df0 (patch) | |
tree | ec7aa2d9f9661266beb96e0b78825c3cf3fb530d /drivers/phy/qualcomm | |
parent | phy: freescale: phy-fsl-imx8-mipi-dphy: Fix alias name to use dashes (diff) | |
download | linux-95055beb067cb30f626fb10f7019737ca7681df0.tar.xz linux-95055beb067cb30f626fb10f7019737ca7681df0.zip |
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: 08e49af50701 ("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>
Diffstat (limited to 'drivers/phy/qualcomm')
-rw-r--r-- | drivers/phy/qualcomm/phy-qcom-m31.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/phy/qualcomm/phy-qcom-m31.c b/drivers/phy/qualcomm/phy-qcom-m31.c index c2590579190a..03fb0d4b75d7 100644 --- a/drivers/phy/qualcomm/phy-qcom-m31.c +++ b/drivers/phy/qualcomm/phy-qcom-m31.c @@ -299,7 +299,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); |