From: Axel Lin Date: Tue, 25 Dec 2012 02:06:20 +0000 (+0800) Subject: regulator: lp8755: Fix lp8755_regulator_init unwind code X-Git-Tag: v3.9-rc1~154^2~11^2~4 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=a1a41ab4e92a42d380286a6aadb1026a2b352801;p=pandora-kernel.git regulator: lp8755: Fix lp8755_regulator_init unwind code It's safe to pass NULL argument to regulator_unregister(), so we can remove the NULL checking before calling regulator_unregister(). However pass a ERR_PTR to regulator_unregister() is wrong, so we need to explicitly set "pchip->rdev[buck_num] = NULL" before goto err_buck. This patch also includes below cleanups: Show correct regulator id in dev_err. Remove __devexit_p. Signed-off-by: Axel Lin Signed-off-by: Mark Brown --- Reading git-diff-tree failed