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: kzalloc() -> kcalloc()
[linux-2.6-microblaze.git]
/
drivers
/
mfd
/
mfd-core.c
diff --git
a/drivers/mfd/mfd-core.c
b/drivers/mfd/mfd-core.c
index
c57e407
..
94e3f32
100644
(file)
--- a/
drivers/mfd/mfd-core.c
+++ b/
drivers/mfd/mfd-core.c
@@
-158,7
+158,7
@@
static int mfd_add_device(struct device *parent, int id,
if (!pdev)
goto fail_alloc;
- res = k
zalloc(sizeof(*res) * cell->num_resources
, GFP_KERNEL);
+ res = k
calloc(cell->num_resources, sizeof(*res)
, GFP_KERNEL);
if (!res)
goto fail_device;