From: Axel Lin Date: Sat, 14 Aug 2010 13:44:04 +0000 (+0800) Subject: regulator: ab8500 - fix the logic to remove already registered regulators in error... X-Git-Tag: v2.6.36-rc5~29^2~14 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=d4876a3bc041e8e40af20b8addbec6d0a42e3842;p=pandora-kernel.git 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 Acked-by: Linus Walleij Acked-by: Mark Brown Signed-off-by: Liam Girdwood --- Reading git-diff-tree failed