From: Axel Lin Date: Thu, 19 Apr 2012 01:44:13 +0000 (+0800) Subject: regulator: max8997: Convert ot use devm_kzalloc X-Git-Tag: v3.5-rc1~177^2~57^2~17 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=8ae5767ba1c4e149ee9970aa7a4e9bf6b251bb77;p=pandora-kernel.git regulator: max8997: Convert ot use devm_kzalloc Also simplify the error handling to start unwind from the place regulator_register fails. No need to check rdev[i] is NULL or not before calling regulator_unregister. regulator_unregister is safe if rdev is NULL, Signed-off-by: Axel Lin Signed-off-by: Mark Brown --- Reading git-diff-tree failed