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>
This commit is contained in:
parent
0b94641126
commit
f7eae37fcc
@ -2777,10 +2777,12 @@ static int ab8500_regulator_probe(struct platform_device *pdev)
|
|||||||
return err;
|
return err;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* register external regulators (before Vaux1, 2 and 3) */
|
if (!is_ab8505(ab8500)) {
|
||||||
err = ab8500_ext_regulator_init(pdev);
|
/* register external regulators (before Vaux1, 2 and 3) */
|
||||||
if (err)
|
err = ab8500_ext_regulator_init(pdev);
|
||||||
return err;
|
if (err)
|
||||||
|
return err;
|
||||||
|
}
|
||||||
|
|
||||||
/* register all regulators */
|
/* register all regulators */
|
||||||
for (i = 0; i < regulator_info_size; i++) {
|
for (i = 0; i < regulator_info_size; i++) {
|
||||||
@ -2822,10 +2824,12 @@ static int ab8500_regulator_remove(struct platform_device *pdev)
|
|||||||
regulator_unregister(info->regulator);
|
regulator_unregister(info->regulator);
|
||||||
}
|
}
|
||||||
|
|
||||||
/* remove external regulators (after Vaux1, 2 and 3) */
|
if (!is_ab8505(ab8500)) {
|
||||||
err = ab8500_ext_regulator_exit(pdev);
|
/* remove external regulators (after Vaux1, 2 and 3) */
|
||||||
if (err)
|
err = ab8500_ext_regulator_exit(pdev);
|
||||||
return err;
|
if (err)
|
||||||
|
return err;
|
||||||
|
}
|
||||||
|
|
||||||
/* remove regulator debug */
|
/* remove regulator debug */
|
||||||
err = ab8500_regulator_debug_exit(pdev);
|
err = ab8500_regulator_debug_exit(pdev);
|
||||||
|
Loading…
Reference in New Issue
Block a user