aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/regulator/virtual.c
diff options
context:
space:
mode:
authorMark Brown <broonie@opensource.wolfsonmicro.com>2009-06-15 15:01:01 -0400
committerLiam Girdwood <lrg@slimlogic.co.uk>2009-09-22 08:32:35 -0400
commitd61c3d56e23b3548a91b70ecce9dc226a8655a57 (patch)
tree0635edf2398ceb1da93ea44da3fa4e0f17269640 /drivers/regulator/virtual.c
parent4dee4d441d3f90cd8cec10a9eb222d8a4f2fa2a3 (diff)
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>
Diffstat (limited to 'drivers/regulator/virtual.c')
-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 e7db5664722..e953c1810c7 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)
285 drvdata->regulator = regulator_get(&pdev->dev, reg_id); 285 drvdata->regulator = regulator_get(&pdev->dev, reg_id);
286 if (IS_ERR(drvdata->regulator)) { 286 if (IS_ERR(drvdata->regulator)) {
287 ret = PTR_ERR(drvdata->regulator); 287 ret = PTR_ERR(drvdata->regulator);
288 dev_err(&pdev->dev, "Failed to obtain supply '%s': %d\n",
289 reg_id, ret);
288 goto err; 290 goto err;
289 } 291 }
290 292