diff options
author | Jani Nikula <ext-jani.1.nikula@nokia.com> | 2010-04-29 09:55:10 +0200 |
---|---|---|
committer | Liam Girdwood <lrg@slimlogic.co.uk> | 2010-05-25 11:16:01 +0200 |
commit | 47bd53f0e8008294ff58c5b37d713f25a8dc56aa (patch) | |
tree | 08dfdd052cf5222f6b8d738cccdc9a863a1171f9 /drivers/regulator | |
parent | regulator: prevent registration of matching regulator consumer supplies (diff) | |
download | linux-47bd53f0e8008294ff58c5b37d713f25a8dc56aa.tar.xz linux-47bd53f0e8008294ff58c5b37d713f25a8dc56aa.zip |
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>
Diffstat (limited to 'drivers/regulator')
-rw-r--r-- | drivers/regulator/core.c | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/drivers/regulator/core.c b/drivers/regulator/core.c index 2a3494f72465..a50672f33afa 100644 --- a/drivers/regulator/core.c +++ b/drivers/regulator/core.c @@ -1013,7 +1013,6 @@ static void unset_regulator_supplies(struct regulator_dev *rdev) list_del(&node->list); kfree(node->dev_name); kfree(node); - return; } } } |