aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/regulator/tps6524x-regulator.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/regulator/tps6524x-regulator.c')
-rw-r--r--drivers/regulator/tps6524x-regulator.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/regulator/tps6524x-regulator.c b/drivers/regulator/tps6524x-regulator.c
index 843ee0a9bb92..1094393155ed 100644
--- a/drivers/regulator/tps6524x-regulator.c
+++ b/drivers/regulator/tps6524x-regulator.c
@@ -572,6 +572,7 @@ static struct regulator_ops regulator_ops = {
572 .get_voltage_sel = get_voltage_sel, 572 .get_voltage_sel = get_voltage_sel,
573 .set_voltage_sel = set_voltage_sel, 573 .set_voltage_sel = set_voltage_sel,
574 .list_voltage = regulator_list_voltage_table, 574 .list_voltage = regulator_list_voltage_table,
575 .map_voltage = regulator_map_voltage_ascend,
575 .set_current_limit = set_current_limit, 576 .set_current_limit = set_current_limit,
576 .get_current_limit = get_current_limit, 577 .get_current_limit = get_current_limit,
577}; 578};
@@ -584,8 +585,7 @@ static int pmic_remove(struct spi_device *spi)
584 if (!hw) 585 if (!hw)
585 return 0; 586 return 0;
586 for (i = 0; i < N_REGULATORS; i++) { 587 for (i = 0; i < N_REGULATORS; i++) {
587 if (hw->rdev[i]) 588 regulator_unregister(hw->rdev[i]);
588 regulator_unregister(hw->rdev[i]);
589 hw->rdev[i] = NULL; 589 hw->rdev[i] = NULL;
590 } 590 }
591 spi_set_drvdata(spi, NULL); 591 spi_set_drvdata(spi, NULL);