From: Axel Lin Date: Wed, 18 Jul 2012 04:33:20 +0000 (+0800) Subject: regulator: palmas: Fix palmas_probe error handling X-Git-Tag: v3.6-rc3~24^2~7 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=1c9d2d71a3cb0fcbfe91307b3c18d22f7d93f0cd;p=pandora-kernel.git regulator: palmas: Fix palmas_probe error handling Fix below error handling cases: 1. If reading PALMAS_SMPS_CTRL fails, simply returns ret rather than goto err_unregister_regulator because we have not call regulator_register(). 2. If palmas_ldo_init() fails, we need to call regulator_unregister() for the regulator we just successfully registered in this for loop iteration. Signed-off-by: Axel Lin Signed-off-by: Mark Brown --- Reading git-diff-tree failed