Commit 535bca20 authored by Axel Lin's avatar Axel Lin Committed by Mark Brown

regulator: Remove unused i2c variable in s5m8767_pmic_probe

Signed-off-by: default avatarAxel Lin <axel.lin@gmail.com>
Acked-by: default avatarSangbeom Kim <sbkim73@samsung.com>
Signed-off-by: default avatarMark Brown <broonie@opensource.wolfsonmicro.com>
parent 2fe4e025
...@@ -542,7 +542,6 @@ static __devinit int s5m8767_pmic_probe(struct platform_device *pdev) ...@@ -542,7 +542,6 @@ static __devinit int s5m8767_pmic_probe(struct platform_device *pdev)
struct s5m_platform_data *pdata = dev_get_platdata(iodev->dev); struct s5m_platform_data *pdata = dev_get_platdata(iodev->dev);
struct regulator_dev **rdev; struct regulator_dev **rdev;
struct s5m8767_info *s5m8767; struct s5m8767_info *s5m8767;
struct i2c_client *i2c;
int i, ret, size; int i, ret, size;
if (!pdata) { if (!pdata) {
...@@ -565,7 +564,6 @@ static __devinit int s5m8767_pmic_probe(struct platform_device *pdev) ...@@ -565,7 +564,6 @@ static __devinit int s5m8767_pmic_probe(struct platform_device *pdev)
s5m8767->iodev = iodev; s5m8767->iodev = iodev;
s5m8767->num_regulators = S5M8767_REG_MAX - 2; s5m8767->num_regulators = S5M8767_REG_MAX - 2;
platform_set_drvdata(pdev, s5m8767); platform_set_drvdata(pdev, s5m8767);
i2c = s5m8767->iodev->i2c;
s5m8767->buck_gpioindex = pdata->buck_default_idx; s5m8767->buck_gpioindex = pdata->buck_default_idx;
s5m8767->buck2_gpiodvs = pdata->buck2_gpiodvs; s5m8767->buck2_gpiodvs = pdata->buck2_gpiodvs;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment