treewide: devm_kzalloc() -> devm_kcalloc()
[linux-2.6-microblaze.git] / drivers / leds / leds-lp8501.c
index 3adb113..4c800b5 100644 (file)
@@ -327,8 +327,8 @@ static int lp8501_probe(struct i2c_client *client,
        if (!chip)
                return -ENOMEM;
 
-       led = devm_kzalloc(&client->dev,
-                       sizeof(*led) * pdata->num_channels, GFP_KERNEL);
+       led = devm_kcalloc(&client->dev,
+                       pdata->num_channels, sizeof(*led), GFP_KERNEL);
        if (!led)
                return -ENOMEM;