regulator: fix unset_regulator_supplies() to remove all matches
authorJani Nikula <ext-jani.1.nikula@nokia.com>
Thu, 29 Apr 2010 07:55:10 +0000 (10:55 +0300)
committerLiam Girdwood <lrg@slimlogic.co.uk>
Tue, 25 May 2010 09:16:01 +0000 (10:16 +0100)
commit47bd53f0e8008294ff58c5b37d713f25a8dc56aa
tree08dfdd052cf5222f6b8d738cccdc9a863a1171f9
parent23b5cc2ab6783256cf06779e1d522482b819b808
regulator: fix unset_regulator_supplies() to remove all matches

Remove all matching consumer supplies, not just the first, to not leave
dangling pointers.

Signed-off-by: Jani Nikula <ext-jani.1.nikula@nokia.com>
Acked-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
Signed-off-by: Liam Girdwood <lrg@slimlogic.co.uk>
drivers/regulator/core.c