From: Axel Lin Date: Thu, 19 Apr 2012 01:47:37 +0000 (+0800) Subject: regulator: max8998: Convert ot use devm_kzalloc X-Git-Tag: v3.5-rc1~177^2~57^2~16 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=0f80ea1499ae047dcaa29ccecfe0d58bb229c4e9;p=pandora-kernel.git regulator: max8998: 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