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

Commit b12a1e29 authored by Mattias Wallin's avatar Mattias Wallin Committed by Liam Girdwood
Browse files

regulator: regulator disable supply fix



This patch fixes a disable failure when regulator supply is used.
A while loop in regulator disable checks for supply pointer != NULL
but the pointer is not always updated, resulting in the while loop
running too many times causing a disable failure.

Signed-off-by: default avatarMattias Wallin <mattias.wallin@stericsson.com>
Acked-by: default avatarLinus Walleij <linus.walleij@stericsson.com>
Acked-by: default avatarMark Brown <broonie@opensource.wolfsonmicro.com>
Signed-off-by: default avatarLiam Girdwood <lrg@slimlogic.co.uk>
parent e8a7e48b
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -1359,6 +1359,7 @@ static int _regulator_disable(struct regulator_dev *rdev,
		struct regulator_dev **supply_rdev_ptr)
{
	int ret = 0;
	*supply_rdev_ptr = NULL;

	if (WARN(rdev->use_count <= 0,
			"unbalanced disables for %s\n",