diff options
author | Axel Lin <axel.lin@ingics.com> | 2014-09-07 12:38:49 +0200 |
---|---|---|
committer | Mark Brown <broonie@linaro.org> | 2014-09-07 17:06:57 +0200 |
commit | e0f6429ecb0cc1d1cb39017135b658960e5b8417 (patch) | |
tree | 5076ff225489298eda5a4e9f23f3a36f970e063f /drivers/regulator | |
parent | Linux 3.17-rc1 (diff) | |
download | linux-e0f6429ecb0cc1d1cb39017135b658960e5b8417.tar.xz linux-e0f6429ecb0cc1d1cb39017135b658960e5b8417.zip |
regulator: bcm590xx: Remove unused **info field from struct bcm590xx_reg
Signed-off-by: Axel Lin <axel.lin@ingics.com>
Signed-off-by: Mark Brown <broonie@linaro.org>
Diffstat (limited to 'drivers/regulator')
-rw-r--r-- | drivers/regulator/bcm590xx-regulator.c | 8 |
1 files changed, 0 insertions, 8 deletions
diff --git a/drivers/regulator/bcm590xx-regulator.c b/drivers/regulator/bcm590xx-regulator.c index 5d1fd6f3d10a..fe6ac69549a6 100644 --- a/drivers/regulator/bcm590xx-regulator.c +++ b/drivers/regulator/bcm590xx-regulator.c @@ -202,7 +202,6 @@ static struct bcm590xx_info bcm590xx_regs[] = { struct bcm590xx_reg { struct regulator_desc *desc; struct bcm590xx *mfd; - struct bcm590xx_info **info; }; static int bcm590xx_get_vsel_register(int id) @@ -389,11 +388,6 @@ static int bcm590xx_probe(struct platform_device *pdev) if (!pmu->desc) return -ENOMEM; - pmu->info = devm_kzalloc(&pdev->dev, BCM590XX_NUM_REGS * - sizeof(struct bcm590xx_info *), GFP_KERNEL); - if (!pmu->info) - return -ENOMEM; - info = bcm590xx_regs; for (i = 0; i < BCM590XX_NUM_REGS; i++, info++) { @@ -403,8 +397,6 @@ static int bcm590xx_probe(struct platform_device *pdev) reg_data = NULL; /* Register the regulators */ - pmu->info[i] = info; - pmu->desc[i].name = info->name; pmu->desc[i].supply_name = info->vin_name; pmu->desc[i].id = i; |