diff options
-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[] = { | |||
202 | struct bcm590xx_reg { | 202 | struct bcm590xx_reg { |
203 | struct regulator_desc *desc; | 203 | struct regulator_desc *desc; |
204 | struct bcm590xx *mfd; | 204 | struct bcm590xx *mfd; |
205 | struct bcm590xx_info **info; | ||
206 | }; | 205 | }; |
207 | 206 | ||
208 | static int bcm590xx_get_vsel_register(int id) | 207 | static int bcm590xx_get_vsel_register(int id) |
@@ -389,11 +388,6 @@ static int bcm590xx_probe(struct platform_device *pdev) | |||
389 | if (!pmu->desc) | 388 | if (!pmu->desc) |
390 | return -ENOMEM; | 389 | return -ENOMEM; |
391 | 390 | ||
392 | pmu->info = devm_kzalloc(&pdev->dev, BCM590XX_NUM_REGS * | ||
393 | sizeof(struct bcm590xx_info *), GFP_KERNEL); | ||
394 | if (!pmu->info) | ||
395 | return -ENOMEM; | ||
396 | |||
397 | info = bcm590xx_regs; | 391 | info = bcm590xx_regs; |
398 | 392 | ||
399 | for (i = 0; i < BCM590XX_NUM_REGS; i++, info++) { | 393 | for (i = 0; i < BCM590XX_NUM_REGS; i++, info++) { |
@@ -403,8 +397,6 @@ static int bcm590xx_probe(struct platform_device *pdev) | |||
403 | reg_data = NULL; | 397 | reg_data = NULL; |
404 | 398 | ||
405 | /* Register the regulators */ | 399 | /* Register the regulators */ |
406 | pmu->info[i] = info; | ||
407 | |||
408 | pmu->desc[i].name = info->name; | 400 | pmu->desc[i].name = info->name; |
409 | pmu->desc[i].supply_name = info->vin_name; | 401 | pmu->desc[i].supply_name = info->vin_name; |
410 | pmu->desc[i].id = i; | 402 | pmu->desc[i].id = i; |