treewide: devm_kzalloc() -> devm_kcalloc()
[linux-2.6-block.git] / drivers / video / backlight / adp8870_bl.c
index 058d1def2d1f4ba6caa6d2e6a720fb41e206b715..4fec9aa92d9be688d379838c436c83a5db27912f 100644 (file)
@@ -246,7 +246,7 @@ static int adp8870_led_probe(struct i2c_client *client)
        struct led_info *cur_led;
        int ret, i;
 
-       led = devm_kzalloc(&client->dev, pdata->num_leds * sizeof(*led),
+       led = devm_kcalloc(&client->dev, pdata->num_leds, sizeof(*led),
                                GFP_KERNEL);
        if (led == NULL)
                return -ENOMEM;