Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit d61c3d56 authored by Mark Brown's avatar Mark Brown Committed by Liam Girdwood
Browse files

regulator: Report regulator_get() failure in virtual consumer



The core will no longer complain so we should log an error here.

Signed-off-by: default avatarMark Brown <broonie@opensource.wolfsonmicro.com>
Signed-off-by: default avatarLiam Girdwood <lrg@slimlogic.co.uk>
parent 4dee4d44
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -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;
	}