diff options
author | Axel Lin <axel.lin@ingics.com> | 2014-03-14 05:59:07 +0400 |
---|---|---|
committer | Mark Brown <broonie@linaro.org> | 2014-03-21 22:09:36 +0400 |
commit | 89ad288961c958dea7928ae4759ed00cc6ce5b3d (patch) | |
tree | 3570828bdabe9d576cb1d200670efeca5f502bcc /drivers/regulator/bcm590xx-regulator.c | |
parent | c93474316d3a4bcdf23dde5d1b87577146dcec99 (diff) | |
download | linux-89ad288961c958dea7928ae4759ed00cc6ce5b3d.tar.xz |
regulator: bcm590xx: Remove **rdev from struct bcm590xx_reg
The **rdev of 'struct bcm590xx_reg' isn't used anywhere in the driver so
remove it.
Signed-off-by: Axel Lin <axel.lin@ingics.com>
Acked-by: Matt Porter <mporter@linaro.org>
Signed-off-by: Mark Brown <broonie@linaro.org>
Diffstat (limited to 'drivers/regulator/bcm590xx-regulator.c')
-rw-r--r-- | drivers/regulator/bcm590xx-regulator.c | 10 |
1 files changed, 0 insertions, 10 deletions
diff --git a/drivers/regulator/bcm590xx-regulator.c b/drivers/regulator/bcm590xx-regulator.c index d12d6d62ffa7..ab08ca7cfb08 100644 --- a/drivers/regulator/bcm590xx-regulator.c +++ b/drivers/regulator/bcm590xx-regulator.c @@ -153,7 +153,6 @@ static struct bcm590xx_info bcm590xx_regs[] = { struct bcm590xx_reg { struct regulator_desc *desc; struct bcm590xx *mfd; - struct regulator_dev **rdev; struct bcm590xx_info **info; }; @@ -334,13 +333,6 @@ static int bcm590xx_probe(struct platform_device *pdev) return -ENOMEM; } - pmu->rdev = devm_kzalloc(&pdev->dev, BCM590XX_NUM_REGS * - sizeof(struct regulator_dev *), GFP_KERNEL); - if (!pmu->rdev) { - dev_err(&pdev->dev, "Memory alloc fails for rdev\n"); - return -ENOMEM; - } - info = bcm590xx_regs; for (i = 0; i < BCM590XX_NUM_REGS; i++, info++) { @@ -391,8 +383,6 @@ static int bcm590xx_probe(struct platform_device *pdev) pdev->name); return PTR_ERR(rdev); } - - pmu->rdev[i] = rdev; } return 0; |