projects
/
linux-2.6-microblaze.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
treewide: devm_kzalloc() -> devm_kcalloc()
[linux-2.6-microblaze.git]
/
drivers
/
leds
/
leds-lp5562.c
diff --git
a/drivers/leds/leds-lp5562.c
b/drivers/leds/leds-lp5562.c
index
05ffa34
..
2a9009f
100644
(file)
--- a/
drivers/leds/leds-lp5562.c
+++ b/
drivers/leds/leds-lp5562.c
@@
-534,8
+534,8
@@
static int lp5562_probe(struct i2c_client *client,
if (!chip)
return -ENOMEM;
- led = devm_k
z
alloc(&client->dev,
-
sizeof(*led) * pdata->num_channels
, GFP_KERNEL);
+ led = devm_k
c
alloc(&client->dev,
+
pdata->num_channels, sizeof(*led)
, GFP_KERNEL);
if (!led)
return -ENOMEM;