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
/
input
/
misc
/
rotary_encoder.c
diff --git
a/drivers/input/misc/rotary_encoder.c
b/drivers/input/misc/rotary_encoder.c
index
1588aec
..
6d30438
100644
(file)
--- a/
drivers/input/misc/rotary_encoder.c
+++ b/
drivers/input/misc/rotary_encoder.c
@@
-283,8
+283,8
@@
static int rotary_encoder_probe(struct platform_device *pdev)
}
encoder->irq =
- devm_k
z
alloc(dev,
-
sizeof(*encoder->irq) * encoder->gpios->ndescs
,
+ devm_k
c
alloc(dev,
+
encoder->gpios->ndescs, sizeof(*encoder->irq)
,
GFP_KERNEL);
if (!encoder->irq)
return -ENOMEM;