summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMark Brown <broonie@opensource.wolfsonmicro.com>2009-06-15 21:01:01 +0200
committerLiam Girdwood <lrg@slimlogic.co.uk>2009-09-22 14:32:35 +0200
commitd61c3d56e23b3548a91b70ecce9dc226a8655a57 (patch)
tree0635edf2398ceb1da93ea44da3fa4e0f17269640
parentregulator: add check index of wm8350->pmic.pdev[] (diff)
downloadlinux-d61c3d56e23b3548a91b70ecce9dc226a8655a57.tar.xz
linux-d61c3d56e23b3548a91b70ecce9dc226a8655a57.zip
regulator: Report regulator_get() failure in virtual consumer
The core will no longer complain so we should log an error here. Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com> Signed-off-by: Liam Girdwood <lrg@slimlogic.co.uk>
-rw-r--r--drivers/regulator/virtual.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/regulator/virtual.c b/drivers/regulator/virtual.c
index e7db5664722e..e953c1810c77 100644
--- a/drivers/regulator/virtual.c
+++ b/drivers/regulator/virtual.c
@@ -285,6 +285,8 @@ static int regulator_virtual_consumer_probe(struct platform_device *pdev)
drvdata->regulator = regulator_get(&pdev->dev, reg_id);
if (IS_ERR(drvdata->regulator)) {
ret = PTR_ERR(drvdata->regulator);
+ dev_err(&pdev->dev, "Failed to obtain supply '%s': %d\n",
+ reg_id, ret);
goto err;
}