summaryrefslogtreecommitdiff
path: root/drivers/regulator/max1586.c
diff options
context:
space:
mode:
authorAxel Lin <axel.lin@gmail.com>2010-08-14 13:44:04 (GMT)
committerLiam Girdwood <lrg@slimlogic.co.uk>2010-09-01 11:59:33 (GMT)
commitd4876a3bc041e8e40af20b8addbec6d0a42e3842 (patch)
tree7cb5e7ec063b68dcda315c3a95824f23f08f7359 /drivers/regulator/max1586.c
parentb3fcf3e576749b911e984e752b6b390c326efb76 (diff)
downloadlinux-d4876a3bc041e8e40af20b8addbec6d0a42e3842.tar.xz
regulator: ab8500 - fix the logic to remove already registered regulators in error path
In current implementation, ab8500_regulator_info[0].regulator is not unregistered if the error happen at i > 0. This patch fixes the resource leak and also improves the readability. Signed-off-by: Axel Lin <axel.lin@gmail.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>
Diffstat (limited to 'drivers/regulator/max1586.c')
0 files changed, 0 insertions, 0 deletions