Commit e301df76 authored by Dmitry Osipenko's avatar Dmitry Osipenko Committed by Mark Brown

regulator: tps65910: Silence deferred probe error

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@protonmail.com> # Ouya T30
Tested-by: Matt Merhar <mattmerhar@protonmail.com> # Ouya T30
Signed-off-by: default avatarDmitry Osipenko <digetx@gmail.com>
Link: https://lore.kernel.org/r/20210705201211.16082-1-digetx@gmail.comSigned-off-by: default avatarMark Brown <broonie@kernel.org>
parent 12401a1c
...@@ -1211,12 +1211,10 @@ static int tps65910_probe(struct platform_device *pdev) ...@@ -1211,12 +1211,10 @@ static int tps65910_probe(struct platform_device *pdev)
rdev = devm_regulator_register(&pdev->dev, &pmic->desc[i], rdev = devm_regulator_register(&pdev->dev, &pmic->desc[i],
&config); &config);
if (IS_ERR(rdev)) { if (IS_ERR(rdev))
dev_err(tps65910->dev, return dev_err_probe(tps65910->dev, PTR_ERR(rdev),
"failed to register %s regulator\n", "failed to register %s regulator\n",
pdev->name); pdev->name);
return PTR_ERR(rdev);
}
/* Save regulator for cleanup */ /* Save regulator for cleanup */
pmic->rdev[i] = rdev; pmic->rdev[i] = rdev;
......
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