summaryrefslogtreecommitdiff
path: root/drivers/pwm/pwm-lp3943.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/pwm/pwm-lp3943.c')
-rw-r--r--drivers/pwm/pwm-lp3943.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/pwm/pwm-lp3943.c b/drivers/pwm/pwm-lp3943.c
index 52584e9962ed..15b40a8bc4fb 100644
--- a/drivers/pwm/pwm-lp3943.c
+++ b/drivers/pwm/pwm-lp3943.c
@@ -225,7 +225,7 @@ static int lp3943_pwm_parse_dt(struct device *dev,
if (num_outputs == 0)
continue;
- output = devm_kzalloc(dev, sizeof(*output) * num_outputs,
+ output = devm_kcalloc(dev, num_outputs, sizeof(*output),
GFP_KERNEL);
if (!output)
return -ENOMEM;