diff options
| author | Samuel Ortiz <sameo@linux.intel.com> | 2012-07-30 18:36:16 -0400 |
|---|---|---|
| committer | Samuel Ortiz <sameo@linux.intel.com> | 2012-07-30 18:51:09 -0400 |
| commit | 938e05bf131334804e08ec4fcd381edfd2d699f6 (patch) | |
| tree | db68f3da6be8d61ab657035c3901c65362b52c87 | |
| parent | 37cd9600a9e20359b0283983c9e3a55d84347168 (diff) | |
regulator: Fix an s5m8767 build failure
Due to a merge conflict we are getting this:
drivers/regulator/s5m8767.c: In function ‘s5m8767_pmic_probe’:
drivers/regulator/s5m8767.c:575:2: error: implicit declaration of function
‘s5m_reg_write’ [-Werror=implicit-function-declaration]
This is fixed by fully converting this driver to the new s5m API.
Cc: Mark Brown <broonie@opensource.wolfsonmicro.com>
Signed-off-by: Samuel Ortiz <sameo@linux.intel.com>
| -rw-r--r-- | drivers/regulator/s5m8767.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/drivers/regulator/s5m8767.c b/drivers/regulator/s5m8767.c index 5a0d18a7aa2a..abe64a32aedf 100644 --- a/drivers/regulator/s5m8767.c +++ b/drivers/regulator/s5m8767.c | |||
| @@ -572,21 +572,21 @@ static __devinit int s5m8767_pmic_probe(struct platform_device *pdev) | |||
| 572 | pdata->buck2_init + | 572 | pdata->buck2_init + |
| 573 | buck_voltage_val2.step); | 573 | buck_voltage_val2.step); |
| 574 | 574 | ||
| 575 | s5m_reg_write(s5m8767->iodev, S5M8767_REG_BUCK2DVS2, buck_init); | 575 | sec_reg_write(s5m8767->iodev, S5M8767_REG_BUCK2DVS2, buck_init); |
| 576 | 576 | ||
| 577 | buck_init = s5m8767_convert_voltage_to_sel(&buck_voltage_val2, | 577 | buck_init = s5m8767_convert_voltage_to_sel(&buck_voltage_val2, |
| 578 | pdata->buck3_init, | 578 | pdata->buck3_init, |
| 579 | pdata->buck3_init + | 579 | pdata->buck3_init + |
| 580 | buck_voltage_val2.step); | 580 | buck_voltage_val2.step); |
| 581 | 581 | ||
| 582 | s5m_reg_write(s5m8767->iodev, S5M8767_REG_BUCK3DVS2, buck_init); | 582 | sec_reg_write(s5m8767->iodev, S5M8767_REG_BUCK3DVS2, buck_init); |
| 583 | 583 | ||
| 584 | buck_init = s5m8767_convert_voltage_to_sel(&buck_voltage_val2, | 584 | buck_init = s5m8767_convert_voltage_to_sel(&buck_voltage_val2, |
| 585 | pdata->buck4_init, | 585 | pdata->buck4_init, |
| 586 | pdata->buck4_init + | 586 | pdata->buck4_init + |
| 587 | buck_voltage_val2.step); | 587 | buck_voltage_val2.step); |
| 588 | 588 | ||
| 589 | s5m_reg_write(s5m8767->iodev, S5M8767_REG_BUCK4DVS2, buck_init); | 589 | sec_reg_write(s5m8767->iodev, S5M8767_REG_BUCK4DVS2, buck_init); |
| 590 | 590 | ||
| 591 | for (i = 0; i < 8; i++) { | 591 | for (i = 0; i < 8; i++) { |
| 592 | if (s5m8767->buck2_gpiodvs) { | 592 | if (s5m8767->buck2_gpiodvs) { |
