Axel Lin 0f80ea1499 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>
2012-04-23 13:20:27 +01:00
..
2012-04-10 09:36:34 +01:00
2012-04-10 09:52:53 +01:00
2012-04-10 11:04:26 +01:00
2012-04-10 09:52:59 +01:00
2012-04-10 09:52:59 +01:00
2012-04-10 09:52:59 +01:00
2012-04-10 09:52:59 +01:00
2012-04-10 09:52:59 +01:00
2012-04-10 09:52:59 +01:00