From: Axel Lin Date: Sat, 14 Aug 2010 13:31:01 +0000 (+0800) Subject: regulator: ab3100 - fix the logic to remove already registered regulators in error... X-Git-Tag: v2.6.36-rc5~29^2~15 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=b3fcf3e576749b911e984e752b6b390c326efb76;p=pandora-kernel.git regulator: ab3100 - fix the logic to remove already registered regulators in error path In current implementation, ab3100_regulators[0].rdev 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