summaryrefslogtreecommitdiff
path: root/drivers
diff options
context:
space:
mode:
authorJani Nikula <ext-jani.1.nikula@nokia.com>2010-04-29 11:55:10 +0400
committerLiam Girdwood <lrg@slimlogic.co.uk>2010-05-25 13:16:01 +0400
commit47bd53f0e8008294ff58c5b37d713f25a8dc56aa (patch)
tree08dfdd052cf5222f6b8d738cccdc9a863a1171f9 /drivers
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>
Diffstat (limited to 'drivers')
-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 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;
}
}
}