diff options
author | Axel Lin <axel.lin@gmail.com> | 2012-07-18 04:33:20 (GMT) |
---|---|---|
committer | Mark Brown <broonie@opensource.wolfsonmicro.com> | 2012-08-07 17:10:26 (GMT) |
commit | 1c9d2d71a3cb0fcbfe91307b3c18d22f7d93f0cd (patch) | |
tree | 2d3e4b9b7bef96d40ba0d7e9e32978229a4950f9 /drivers/regulator/tps6586x-regulator.c | |
parent | 2735daeb161d3eb1ba041158c21ac2a0e42da6a2 (diff) | |
download | linux-1c9d2d71a3cb0fcbfe91307b3c18d22f7d93f0cd.tar.xz |
regulator: palmas: Fix palmas_probe error handling
Fix below error handling cases:
1. If reading PALMAS_SMPS_CTRL fails, simply returns ret rather than goto
err_unregister_regulator because we have not call regulator_register().
2. If palmas_ldo_init() fails, we need to call regulator_unregister() for the
regulator we just successfully registered in this for loop iteration.
Signed-off-by: Axel Lin <axel.lin@gmail.com>
Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
Diffstat (limited to 'drivers/regulator/tps6586x-regulator.c')
0 files changed, 0 insertions, 0 deletions