diff options
Diffstat (limited to 'drivers/mfd/wm8994-core.c')
| -rw-r--r-- | drivers/mfd/wm8994-core.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/drivers/mfd/wm8994-core.c b/drivers/mfd/wm8994-core.c index 953d0790ffd5..5d5888ee2966 100644 --- a/drivers/mfd/wm8994-core.c +++ b/drivers/mfd/wm8994-core.c | |||
| @@ -368,9 +368,10 @@ static int wm8994_device_init(struct wm8994 *wm8994, int irq) | |||
| 368 | goto err; | 368 | goto err; |
| 369 | } | 369 | } |
| 370 | 370 | ||
| 371 | wm8994->supplies = devm_kzalloc(wm8994->dev, | 371 | wm8994->supplies = devm_kcalloc(wm8994->dev, |
| 372 | sizeof(struct regulator_bulk_data) * | 372 | wm8994->num_supplies, |
| 373 | wm8994->num_supplies, GFP_KERNEL); | 373 | sizeof(struct regulator_bulk_data), |
| 374 | GFP_KERNEL); | ||
| 374 | if (!wm8994->supplies) { | 375 | if (!wm8994->supplies) { |
| 375 | ret = -ENOMEM; | 376 | ret = -ENOMEM; |
| 376 | goto err; | 377 | goto err; |
