Patch "regulator: tps65910: Silence deferred probe error" has been added to the 5.14-stable tree

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



This is a note to let you know that I've just added the patch titled

    regulator: tps65910: Silence deferred probe error

to the 5.14-stable tree which can be found at:
    http://www.kernel.org/git/?p=linux/kernel/git/stable/stable-queue.git;a=summary

The filename of the patch is:
     regulator-tps65910-silence-deferred-probe-error.patch
and it can be found in the queue-5.14 subdirectory.

If you, or anyone else, feels it should not be added to the stable tree,
please let <stable@xxxxxxxxxxxxxxx> know about it.



commit 6cbdef6e25fdc4b45105daa820160cdc9e4c1948
Author: Dmitry Osipenko <digetx@xxxxxxxxx>
Date:   Mon Jul 5 23:12:11 2021 +0300

    regulator: tps65910: Silence deferred probe error
    
    [ Upstream commit e301df76472cc929fa62d923bc3892931f7ad71d ]
    
    The TPS65910 regulator now gets a deferred probe until supply regulator is
    registered. Silence noisy error message about the deferred probe.
    
    Reported-by: Matt Merhar <mattmerhar@xxxxxxxxxxxxxx> # Ouya T30
    Tested-by: Matt Merhar <mattmerhar@xxxxxxxxxxxxxx> # Ouya T30
    Signed-off-by: Dmitry Osipenko <digetx@xxxxxxxxx>
    Link: https://lore.kernel.org/r/20210705201211.16082-1-digetx@xxxxxxxxx
    Signed-off-by: Mark Brown <broonie@xxxxxxxxxx>
    Signed-off-by: Sasha Levin <sashal@xxxxxxxxxx>

diff --git a/drivers/regulator/tps65910-regulator.c b/drivers/regulator/tps65910-regulator.c
index 1d5b0a1b86f7..06cbe60c990f 100644
--- a/drivers/regulator/tps65910-regulator.c
+++ b/drivers/regulator/tps65910-regulator.c
@@ -1211,12 +1211,10 @@ static int tps65910_probe(struct platform_device *pdev)
 
 		rdev = devm_regulator_register(&pdev->dev, &pmic->desc[i],
 					       &config);
-		if (IS_ERR(rdev)) {
-			dev_err(tps65910->dev,
-				"failed to register %s regulator\n",
-				pdev->name);
-			return PTR_ERR(rdev);
-		}
+		if (IS_ERR(rdev))
+			return dev_err_probe(tps65910->dev, PTR_ERR(rdev),
+					     "failed to register %s regulator\n",
+					     pdev->name);
 
 		/* Save regulator for cleanup */
 		pmic->rdev[i] = rdev;



[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux