summaryrefslogtreecommitdiff
path: root/drivers/power/supply/wm97xx_battery.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/power/supply/wm97xx_battery.c')
-rw-r--r--drivers/power/supply/wm97xx_battery.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/power/supply/wm97xx_battery.c b/drivers/power/supply/wm97xx_battery.c
index bd4f66651513..6754e761778a 100644
--- a/drivers/power/supply/wm97xx_battery.c
+++ b/drivers/power/supply/wm97xx_battery.c
@@ -201,7 +201,7 @@ static int wm97xx_bat_probe(struct platform_device *dev)
if (pdata->min_voltage >= 0)
props++; /* POWER_SUPPLY_PROP_VOLTAGE_MIN */
- prop = kzalloc(props * sizeof(*prop), GFP_KERNEL);
+ prop = kcalloc(props, sizeof(*prop), GFP_KERNEL);
if (!prop) {
ret = -ENOMEM;
goto err3;