projects
/
platform
/
kernel
/
linux-arm64.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
4dee4d4
)
regulator: Report regulator_get() failure in virtual consumer
author
Mark Brown
<broonie@opensource.wolfsonmicro.com>
Mon, 15 Jun 2009 19:01:01 +0000
(20:01 +0100)
committer
Liam Girdwood
<lrg@slimlogic.co.uk>
Tue, 22 Sep 2009 12:32:35 +0000
(13:32 +0100)
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>
drivers/regulator/virtual.c
patch
|
blob
|
history
diff --git
a/drivers/regulator/virtual.c
b/drivers/regulator/virtual.c
index
e7db566
..
e953c18
100644
(file)
--- 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;
}