]> nv-tegra.nvidia Code Review - linux-3.10.git/commitdiff
regulator: Report regulator_get() failure in virtual consumer
authorMark Brown <broonie@opensource.wolfsonmicro.com>
Mon, 15 Jun 2009 19:01:01 +0000 (20:01 +0100)
committerLiam 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

index e7db5664722e962f1e7c60c2bea1c6f8910b5aeb..e953c1810c77723f8f2e591c78321344742d5601 100644 (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;
        }