aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/regulator/max8997.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/regulator/max8997.c')
-rw-r--r--drivers/regulator/max8997.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/drivers/regulator/max8997.c b/drivers/regulator/max8997.c
index 10d5a1d9768e..0fc7b8c720d2 100644
--- a/drivers/regulator/max8997.c
+++ b/drivers/regulator/max8997.c
@@ -1124,6 +1124,10 @@ static __devinit int max8997_pmic_probe(struct platform_device *pdev)
1124 0x3f); 1124 0x3f);
1125 } 1125 }
1126 1126
1127 /* Misc Settings */
1128 max8997->ramp_delay = 10; /* set 10mV/us, which is the default */
1129 max8997_write_reg(i2c, MAX8997_REG_BUCKRAMP, (0xf << 4) | 0x9);
1130
1127 for (i = 0; i < pdata->num_regulators; i++) { 1131 for (i = 0; i < pdata->num_regulators; i++) {
1128 const struct voltage_map_desc *desc; 1132 const struct voltage_map_desc *desc;
1129 int id = pdata->regulators[i].id; 1133 int id = pdata->regulators[i].id;
@@ -1148,10 +1152,6 @@ static __devinit int max8997_pmic_probe(struct platform_device *pdev)
1148 } 1152 }
1149 } 1153 }
1150 1154
1151 /* Misc Settings */
1152 max8997->ramp_delay = 10; /* set 10mV/us, which is the default */
1153 max8997_write_reg(i2c, MAX8997_REG_BUCKRAMP, (0xf << 4) | 0x9);
1154
1155 return 0; 1155 return 0;
1156err: 1156err:
1157 for (i = 0; i < max8997->num_regulators; i++) 1157 for (i = 0; i < max8997->num_regulators; i++)