diff options
author | Mark Brown <broonie@opensource.wolfsonmicro.com> | 2009-06-15 20:01:01 +0100 |
---|---|---|
committer | Liam Girdwood <lrg@slimlogic.co.uk> | 2009-09-22 13:32:35 +0100 |
commit | d61c3d56e23b3548a91b70ecce9dc226a8655a57 (patch) | |
tree | 0635edf2398ceb1da93ea44da3fa4e0f17269640 /drivers | |
parent | 4dee4d441d3f90cd8cec10a9eb222d8a4f2fa2a3 (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')
-rw-r--r-- | drivers/regulator/virtual.c | 2 |
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) 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; } |