summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJani Nikula <ext-jani.1.nikula@nokia.com>2010-04-29 07:55:10 (GMT)
committerLiam Girdwood <lrg@slimlogic.co.uk>2010-05-25 09:16:01 (GMT)
commit47bd53f0e8008294ff58c5b37d713f25a8dc56aa (patch)
tree08dfdd052cf5222f6b8d738cccdc9a863a1171f9
parent23b5cc2ab6783256cf06779e1d522482b819b808 (diff)
downloadlinux-47bd53f0e8008294ff58c5b37d713f25a8dc56aa.tar.xz
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>
-rw-r--r--drivers/regulator/core.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/drivers/regulator/core.c b/drivers/regulator/core.c
index 2a3494f..a50672f 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;
}
}
}