diff options
Diffstat (limited to 'drivers/leds/leds-lp8501.c')
-rw-r--r-- | drivers/leds/leds-lp8501.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/leds/leds-lp8501.c b/drivers/leds/leds-lp8501.c index 3adb113cf02e..4c800b5989a9 100644 --- a/drivers/leds/leds-lp8501.c +++ b/drivers/leds/leds-lp8501.c | |||
@@ -327,8 +327,8 @@ static int lp8501_probe(struct i2c_client *client, | |||
327 | if (!chip) | 327 | if (!chip) |
328 | return -ENOMEM; | 328 | return -ENOMEM; |
329 | 329 | ||
330 | led = devm_kzalloc(&client->dev, | 330 | led = devm_kcalloc(&client->dev, |
331 | sizeof(*led) * pdata->num_channels, GFP_KERNEL); | 331 | pdata->num_channels, sizeof(*led), GFP_KERNEL); |
332 | if (!led) | 332 | if (!led) |
333 | return -ENOMEM; | 333 | return -ENOMEM; |
334 | 334 | ||