summaryrefslogtreecommitdiff
path: root/drivers/regulator/tps65912-regulator.c
diff options
context:
space:
mode:
authorAxel Lin <axel.lin@gmail.com>2012-04-19 01:47:37 (GMT)
committerMark Brown <broonie@opensource.wolfsonmicro.com>2012-04-23 12:20:27 (GMT)
commit0f80ea1499ae047dcaa29ccecfe0d58bb229c4e9 (patch)
treebfdb673754c520d9728d635466e76807f0c11f00 /drivers/regulator/tps65912-regulator.c
parent8ae5767ba1c4e149ee9970aa7a4e9bf6b251bb77 (diff)
downloadlinux-0f80ea1499ae047dcaa29ccecfe0d58bb229c4e9.tar.xz
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 <axel.lin@gmail.com> Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
Diffstat (limited to 'drivers/regulator/tps65912-regulator.c')
0 files changed, 0 insertions, 0 deletions