1
0
Fork 0

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>
hifive-unleashed-5.1
Mark Brown 2009-06-15 20:01:01 +01:00 committed by Liam Girdwood
parent 4dee4d441d
commit d61c3d56e2
1 changed files with 2 additions and 0 deletions

View File

@ -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;
}