mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2025-01-09 22:50:41 +00:00
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>
This commit is contained in:
parent
7d1311b93e
commit
e0f6429ecb
@ -202,7 +202,6 @@ static struct bcm590xx_info bcm590xx_regs[] = {
|
|||||||
struct bcm590xx_reg {
|
struct bcm590xx_reg {
|
||||||
struct regulator_desc *desc;
|
struct regulator_desc *desc;
|
||||||
struct bcm590xx *mfd;
|
struct bcm590xx *mfd;
|
||||||
struct bcm590xx_info **info;
|
|
||||||
};
|
};
|
||||||
|
|
||||||
static int bcm590xx_get_vsel_register(int id)
|
static int bcm590xx_get_vsel_register(int id)
|
||||||
@ -389,11 +388,6 @@ static int bcm590xx_probe(struct platform_device *pdev)
|
|||||||
if (!pmu->desc)
|
if (!pmu->desc)
|
||||||
return -ENOMEM;
|
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;
|
info = bcm590xx_regs;
|
||||||
|
|
||||||
for (i = 0; i < BCM590XX_NUM_REGS; i++, info++) {
|
for (i = 0; i < BCM590XX_NUM_REGS; i++, info++) {
|
||||||
@ -403,8 +397,6 @@ static int bcm590xx_probe(struct platform_device *pdev)
|
|||||||
reg_data = NULL;
|
reg_data = NULL;
|
||||||
|
|
||||||
/* Register the regulators */
|
/* Register the regulators */
|
||||||
pmu->info[i] = info;
|
|
||||||
|
|
||||||
pmu->desc[i].name = info->name;
|
pmu->desc[i].name = info->name;
|
||||||
pmu->desc[i].supply_name = info->vin_name;
|
pmu->desc[i].supply_name = info->vin_name;
|
||||||
pmu->desc[i].id = i;
|
pmu->desc[i].id = i;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user