diff options
author | Axel Lin <axel.lin@gmail.com> | 2012-03-06 21:02:12 -0500 |
---|---|---|
committer | Mark Brown <broonie@opensource.wolfsonmicro.com> | 2012-03-11 16:48:53 -0400 |
commit | 535bca2037ce89349cb5ed80ab3ab6d0c0ef1938 (patch) | |
tree | 3a0c5859a874c6b0b427032b0e244c8b64b36eb5 /drivers/regulator/s5m8767.c | |
parent | 2fe4e0259dfd6d66f2a094b5109f11f8d253e764 (diff) |
regulator: Remove unused i2c variable in s5m8767_pmic_probe
Signed-off-by: Axel Lin <axel.lin@gmail.com>
Acked-by: Sangbeom Kim <sbkim73@samsung.com>
Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
Diffstat (limited to 'drivers/regulator/s5m8767.c')
-rw-r--r-- | drivers/regulator/s5m8767.c | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/drivers/regulator/s5m8767.c b/drivers/regulator/s5m8767.c index 9b97aa36b7cc..e369d9ebec5d 100644 --- a/drivers/regulator/s5m8767.c +++ b/drivers/regulator/s5m8767.c | |||
@@ -542,7 +542,6 @@ static __devinit int s5m8767_pmic_probe(struct platform_device *pdev) | |||
542 | struct s5m_platform_data *pdata = dev_get_platdata(iodev->dev); | 542 | struct s5m_platform_data *pdata = dev_get_platdata(iodev->dev); |
543 | struct regulator_dev **rdev; | 543 | struct regulator_dev **rdev; |
544 | struct s5m8767_info *s5m8767; | 544 | struct s5m8767_info *s5m8767; |
545 | struct i2c_client *i2c; | ||
546 | int i, ret, size; | 545 | int i, ret, size; |
547 | 546 | ||
548 | if (!pdata) { | 547 | if (!pdata) { |
@@ -565,7 +564,6 @@ static __devinit int s5m8767_pmic_probe(struct platform_device *pdev) | |||
565 | s5m8767->iodev = iodev; | 564 | s5m8767->iodev = iodev; |
566 | s5m8767->num_regulators = S5M8767_REG_MAX - 2; | 565 | s5m8767->num_regulators = S5M8767_REG_MAX - 2; |
567 | platform_set_drvdata(pdev, s5m8767); | 566 | platform_set_drvdata(pdev, s5m8767); |
568 | i2c = s5m8767->iodev->i2c; | ||
569 | 567 | ||
570 | s5m8767->buck_gpioindex = pdata->buck_default_idx; | 568 | s5m8767->buck_gpioindex = pdata->buck_default_idx; |
571 | s5m8767->buck2_gpiodvs = pdata->buck2_gpiodvs; | 569 | s5m8767->buck2_gpiodvs = pdata->buck2_gpiodvs; |