]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
phy: qcom-qmp: drop regulator error message
authorJohan Hovold <johan+linaro@kernel.org>
Wed, 12 Oct 2022 08:12:28 +0000 (10:12 +0200)
committerVinod Koul <vkoul@kernel.org>
Fri, 28 Oct 2022 12:12:28 +0000 (17:42 +0530)
Regulator core already logs an error message in case requesting a
regulator fails so drop the mostly redundant error message from probe.

Reviewed-by: Dmitry Baryshkov <dmitry.baryshkov@linaro.org>
Signed-off-by: Johan Hovold <johan+linaro@kernel.org>
Link: https://lore.kernel.org/r/20221012081241.18273-2-johan+linaro@kernel.org
Signed-off-by: Vinod Koul <vkoul@kernel.org>
drivers/phy/qualcomm/phy-qcom-qmp-combo.c
drivers/phy/qualcomm/phy-qcom-qmp-pcie-msm8996.c
drivers/phy/qualcomm/phy-qcom-qmp-pcie.c
drivers/phy/qualcomm/phy-qcom-qmp-ufs.c
drivers/phy/qualcomm/phy-qcom-qmp-usb.c

index 7b434e2ee640eeebaed55a8367d2b7782b6d936a..998c8f80ccd808c3cddaa378d3ae552ebf9d875e 100644 (file)
@@ -2816,8 +2816,7 @@ static int qmp_combo_probe(struct platform_device *pdev)
 
        ret = qmp_combo_vreg_init(dev, cfg);
        if (ret)
-               return dev_err_probe(dev, ret,
-                                    "failed to get regulator supplies\n");
+               return ret;
 
        num = of_get_available_child_count(dev->of_node);
        /* do we have a rogue child node ? */
index 5fdd85a1dc3ef5f244a3e0b55f51eabd1e57073d..45c0e2958bf631cb98f282eb42a226f84f920f2d 100644 (file)
@@ -869,8 +869,7 @@ static int qmp_pcie_msm8996_probe(struct platform_device *pdev)
 
        ret = qmp_pcie_msm8996_vreg_init(dev, cfg);
        if (ret)
-               return dev_err_probe(dev, ret,
-                                    "failed to get regulator supplies\n");
+               return ret;
 
        num = of_get_available_child_count(dev->of_node);
        /* do we have a rogue child node ? */
index 30838ae8f02727c9025a2831541f237232042b0d..dc7f8ba413b9d21aee6dd861f23b98d5719f17ec 100644 (file)
@@ -2445,8 +2445,7 @@ static int qmp_pcie_probe(struct platform_device *pdev)
 
        ret = qmp_pcie_vreg_init(dev, cfg);
        if (ret)
-               return dev_err_probe(dev, ret,
-                                    "failed to get regulator supplies\n");
+               return ret;
 
        num = of_get_available_child_count(dev->of_node);
        /* do we have a rogue child node ? */
index e28c45ab74ea27a3350284d750c3678b5169b482..566365fbfe1aeadf8aa98d748a870d3adb8086b4 100644 (file)
@@ -1210,8 +1210,7 @@ static int qmp_ufs_probe(struct platform_device *pdev)
 
        ret = qmp_ufs_vreg_init(dev, cfg);
        if (ret)
-               return dev_err_probe(dev, ret,
-                                    "failed to get regulator supplies\n");
+               return ret;
 
        num = of_get_available_child_count(dev->of_node);
        /* do we have a rogue child node ? */
index b0b13fb6cb59e3b3d84870e839fb08914c7ad30e..a0b97fd5d0a53fd88412242a1e30d381013d6de0 100644 (file)
@@ -2746,8 +2746,7 @@ static int qmp_usb_probe(struct platform_device *pdev)
 
        ret = qmp_usb_vreg_init(dev, cfg);
        if (ret)
-               return dev_err_probe(dev, ret,
-                                    "failed to get regulator supplies\n");
+               return ret;
 
        num = of_get_available_child_count(dev->of_node);
        /* do we have a rogue child node ? */