regulator: regulator disable supply fix
authorMattias Wallin <mattias.wallin@stericsson.com>
Tue, 2 Nov 2010 13:55:34 +0000 (14:55 +0100)
committerLiam Girdwood <lrg@slimlogic.co.uk>
Tue, 30 Nov 2010 15:13:25 +0000 (15:13 +0000)
commitb12a1e29af595d05612153bcb85258193bbf9382
tree700e2fdd4f0468498b90cf5fabc2b530c5417e0f
parente8a7e48bb248a1196484d3f8afa53bded2b24e71
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: Mattias Wallin <mattias.wallin@stericsson.com>
Acked-by: Linus Walleij <linus.walleij@stericsson.com>
Acked-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
Signed-off-by: Liam Girdwood <lrg@slimlogic.co.uk>
drivers/regulator/core.c