Commit 89ad2889 authored by Axel Lin's avatar Axel Lin Committed by Mark Brown

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: default avatarAxel Lin <axel.lin@ingics.com>
Acked-by: default avatarMatt Porter <mporter@linaro.org>
Signed-off-by: default avatarMark Brown <broonie@linaro.org>
parent c9347431
......@@ -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;
......
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