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-lp55xx-common.c
diff --git
a/drivers/leds/leds-lp55xx-common.c
b/drivers/leds/leds-lp55xx-common.c
index
5377f22
..
3d79a63
100644
(file)
--- a/
drivers/leds/leds-lp55xx-common.c
+++ b/
drivers/leds/leds-lp55xx-common.c
@@
-560,7
+560,7
@@
struct lp55xx_platform_data *lp55xx_of_populate_pdata(struct device *dev,
return ERR_PTR(-EINVAL);
}
- cfg = devm_k
zalloc(dev, sizeof(*cfg) * num_channels
, GFP_KERNEL);
+ cfg = devm_k
calloc(dev, num_channels, sizeof(*cfg)
, GFP_KERNEL);
if (!cfg)
return ERR_PTR(-ENOMEM);