diff options
author | Axel Lin <axel.lin@ingics.com> | 2013-04-11 00:04:18 -0400 |
---|---|---|
committer | Mark Brown <broonie@opensource.wolfsonmicro.com> | 2013-04-11 12:43:50 -0400 |
commit | 3480c0cab6e1a25fdeb63147b0b643b7825a36fb (patch) | |
tree | c7498b1852f3963495916873773adf96a93bd0c1 | |
parent | e343ab08bddeb0ed83f0a85f06739569d3081e3a (diff) |
regulator: ab8500-ext: Make the return type of ab8500_ext_regulator_exit() void
ab8500_ext_regulator_exit() never fails.
Signed-off-by: Axel Lin <axel.lin@ingics.com>
Acked-by: Bengt Jonsson <bengt.g.jonsson@stericsson.com>
Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
-rw-r--r-- | drivers/regulator/ab8500-ext.c | 4 | ||||
-rw-r--r-- | drivers/regulator/ab8500.c | 9 | ||||
-rw-r--r-- | include/linux/regulator/ab8500.h | 2 |
3 files changed, 5 insertions, 10 deletions
diff --git a/drivers/regulator/ab8500-ext.c b/drivers/regulator/ab8500-ext.c index 9aee21cad379..20680f30a968 100644 --- a/drivers/regulator/ab8500-ext.c +++ b/drivers/regulator/ab8500-ext.c | |||
@@ -394,7 +394,7 @@ int ab8500_ext_regulator_init(struct platform_device *pdev) | |||
394 | return 0; | 394 | return 0; |
395 | } | 395 | } |
396 | 396 | ||
397 | int ab8500_ext_regulator_exit(struct platform_device *pdev) | 397 | void ab8500_ext_regulator_exit(struct platform_device *pdev) |
398 | { | 398 | { |
399 | int i; | 399 | int i; |
400 | 400 | ||
@@ -407,8 +407,6 @@ int ab8500_ext_regulator_exit(struct platform_device *pdev) | |||
407 | 407 | ||
408 | regulator_unregister(info->rdev); | 408 | regulator_unregister(info->rdev); |
409 | } | 409 | } |
410 | |||
411 | return 0; | ||
412 | } | 410 | } |
413 | 411 | ||
414 | MODULE_LICENSE("GPL v2"); | 412 | MODULE_LICENSE("GPL v2"); |
diff --git a/drivers/regulator/ab8500.c b/drivers/regulator/ab8500.c index 9ebd131b2ec6..c200f8bb61db 100644 --- a/drivers/regulator/ab8500.c +++ b/drivers/regulator/ab8500.c | |||
@@ -3194,12 +3194,9 @@ static int ab8500_regulator_remove(struct platform_device *pdev) | |||
3194 | regulator_unregister(info->regulator); | 3194 | regulator_unregister(info->regulator); |
3195 | } | 3195 | } |
3196 | 3196 | ||
3197 | if (!is_ab8505(ab8500)) { | 3197 | /* remove external regulators (after Vaux1, 2 and 3) */ |
3198 | /* remove external regulators (after Vaux1, 2 and 3) */ | 3198 | if (!is_ab8505(ab8500)) |
3199 | err = ab8500_ext_regulator_exit(pdev); | 3199 | ab8500_ext_regulator_exit(pdev); |
3200 | if (err) | ||
3201 | return err; | ||
3202 | } | ||
3203 | 3200 | ||
3204 | /* remove regulator debug */ | 3201 | /* remove regulator debug */ |
3205 | err = ab8500_regulator_debug_exit(pdev); | 3202 | err = ab8500_regulator_debug_exit(pdev); |
diff --git a/include/linux/regulator/ab8500.h b/include/linux/regulator/ab8500.h index 90b8b5ae9a4e..7c5ff0c55773 100644 --- a/include/linux/regulator/ab8500.h +++ b/include/linux/regulator/ab8500.h | |||
@@ -338,6 +338,6 @@ static inline int ab8500_regulator_debug_exit(struct platform_device *pdev) | |||
338 | 338 | ||
339 | /* AB8500 external regulator functions. */ | 339 | /* AB8500 external regulator functions. */ |
340 | int ab8500_ext_regulator_init(struct platform_device *pdev); | 340 | int ab8500_ext_regulator_init(struct platform_device *pdev); |
341 | int ab8500_ext_regulator_exit(struct platform_device *pdev); | 341 | void ab8500_ext_regulator_exit(struct platform_device *pdev); |
342 | 342 | ||
343 | #endif | 343 | #endif |