diff options
author | Sachin Kamat <sachin.kamat@samsung.com> | 2014-06-24 04:40:04 -0400 |
---|---|---|
committer | Mark Brown <broonie@linaro.org> | 2014-06-24 11:18:52 -0400 |
commit | 0a3ade7ec29bb616c0530ca23749493171970064 (patch) | |
tree | 92c21e6419deffb518b5e26efb05044cd2802516 /drivers/regulator | |
parent | 7171511eaec5bf23fb06078f59784a3a0626b38f (diff) |
regulator: s5m8767: Remove unused variable
'size' is not used in the function. Remove it.
Signed-off-by: Sachin Kamat <sachin.kamat@samsung.com>
Signed-off-by: Mark Brown <broonie@linaro.org>
Diffstat (limited to 'drivers/regulator')
-rw-r--r-- | drivers/regulator/s5m8767.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/drivers/regulator/s5m8767.c b/drivers/regulator/s5m8767.c index c79af943a5c0..0ab5cbeeb797 100644 --- a/drivers/regulator/s5m8767.c +++ b/drivers/regulator/s5m8767.c | |||
@@ -686,7 +686,7 @@ static int s5m8767_pmic_probe(struct platform_device *pdev) | |||
686 | struct sec_platform_data *pdata = iodev->pdata; | 686 | struct sec_platform_data *pdata = iodev->pdata; |
687 | struct regulator_config config = { }; | 687 | struct regulator_config config = { }; |
688 | struct s5m8767_info *s5m8767; | 688 | struct s5m8767_info *s5m8767; |
689 | int i, ret, size, buck_init; | 689 | int i, ret, buck_init; |
690 | 690 | ||
691 | if (!pdata) { | 691 | if (!pdata) { |
692 | dev_err(pdev->dev.parent, "Platform data not supplied\n"); | 692 | dev_err(pdev->dev.parent, "Platform data not supplied\n"); |
@@ -725,8 +725,6 @@ static int s5m8767_pmic_probe(struct platform_device *pdev) | |||
725 | if (!s5m8767) | 725 | if (!s5m8767) |
726 | return -ENOMEM; | 726 | return -ENOMEM; |
727 | 727 | ||
728 | size = sizeof(struct regulator_dev *) * (S5M8767_REG_MAX - 2); | ||
729 | |||
730 | s5m8767->dev = &pdev->dev; | 728 | s5m8767->dev = &pdev->dev; |
731 | s5m8767->iodev = iodev; | 729 | s5m8767->iodev = iodev; |
732 | s5m8767->num_regulators = pdata->num_regulators; | 730 | s5m8767->num_regulators = pdata->num_regulators; |