diff options
author | Rabin Vincent <rabin.vincent@stericsson.com> | 2013-04-02 08:24:08 -0400 |
---|---|---|
committer | Mark Brown <broonie@opensource.wolfsonmicro.com> | 2013-04-02 18:01:42 -0400 |
commit | f7eae37fcc6e4bdc404692a3e94fc9c51e9c5cb2 (patch) | |
tree | 869905722003f0f88040c2a398dac6263fcbaa37 /drivers/regulator/ab8500.c | |
parent | 0b94641126f217f01695d8cc40749bf70e4e0bb6 (diff) |
regulator: ab8500: Don't register external regulators on AB8505
ExtSupply regulators are not included on AB8505 based platforms.
Signed-off-by: Rabin Vincent <rabin.vincent@stericsson.com>
Signed-off-by: Lee Jones <lee.jones@linaro.org>
Tested-by: Marcus COOPER <marcus.xm.cooper@stericsson.com>
Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
Diffstat (limited to 'drivers/regulator/ab8500.c')
-rw-r--r-- | drivers/regulator/ab8500.c | 20 |
1 files changed, 12 insertions, 8 deletions
diff --git a/drivers/regulator/ab8500.c b/drivers/regulator/ab8500.c index f89a17a66433..65f9365885a8 100644 --- a/drivers/regulator/ab8500.c +++ b/drivers/regulator/ab8500.c | |||
@@ -2777,10 +2777,12 @@ static int ab8500_regulator_probe(struct platform_device *pdev) | |||
2777 | return err; | 2777 | return err; |
2778 | } | 2778 | } |
2779 | 2779 | ||
2780 | /* register external regulators (before Vaux1, 2 and 3) */ | 2780 | if (!is_ab8505(ab8500)) { |
2781 | err = ab8500_ext_regulator_init(pdev); | 2781 | /* register external regulators (before Vaux1, 2 and 3) */ |
2782 | if (err) | 2782 | err = ab8500_ext_regulator_init(pdev); |
2783 | return err; | 2783 | if (err) |
2784 | return err; | ||
2785 | } | ||
2784 | 2786 | ||
2785 | /* register all regulators */ | 2787 | /* register all regulators */ |
2786 | for (i = 0; i < regulator_info_size; i++) { | 2788 | for (i = 0; i < regulator_info_size; i++) { |
@@ -2822,10 +2824,12 @@ static int ab8500_regulator_remove(struct platform_device *pdev) | |||
2822 | regulator_unregister(info->regulator); | 2824 | regulator_unregister(info->regulator); |
2823 | } | 2825 | } |
2824 | 2826 | ||
2825 | /* remove external regulators (after Vaux1, 2 and 3) */ | 2827 | if (!is_ab8505(ab8500)) { |
2826 | err = ab8500_ext_regulator_exit(pdev); | 2828 | /* remove external regulators (after Vaux1, 2 and 3) */ |
2827 | if (err) | 2829 | err = ab8500_ext_regulator_exit(pdev); |
2828 | return err; | 2830 | if (err) |
2831 | return err; | ||
2832 | } | ||
2829 | 2833 | ||
2830 | /* remove regulator debug */ | 2834 | /* remove regulator debug */ |
2831 | err = ab8500_regulator_debug_exit(pdev); | 2835 | err = ab8500_regulator_debug_exit(pdev); |