projects
/
linux-2.6-block.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-block.git]
/
drivers
/
video
/
backlight
/
adp8870_bl.c
diff --git
a/drivers/video/backlight/adp8870_bl.c
b/drivers/video/backlight/adp8870_bl.c
index 058d1def2d1f4ba6caa6d2e6a720fb41e206b715..4fec9aa92d9be688d379838c436c83a5db27912f 100644
(file)
--- a/
drivers/video/backlight/adp8870_bl.c
+++ b/
drivers/video/backlight/adp8870_bl.c
@@
-246,7
+246,7
@@
static int adp8870_led_probe(struct i2c_client *client)
struct led_info *cur_led;
int ret, i;
- led = devm_k
zalloc(&client->dev, pdata->num_leds *
sizeof(*led),
+ led = devm_k
calloc(&client->dev, pdata->num_leds,
sizeof(*led),
GFP_KERNEL);
if (led == NULL)
return -ENOMEM;