summaryrefslogtreecommitdiffstats
path: root/drivers/leds/leds-da9052.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/leds/leds-da9052.c')
-rw-r--r--drivers/leds/leds-da9052.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/leds/leds-da9052.c b/drivers/leds/leds-da9052.c
index f8c7d82c2652..31d4c94e6fd8 100644
--- a/drivers/leds/leds-da9052.c
+++ b/drivers/leds/leds-da9052.c
@@ -113,8 +113,8 @@ static int da9052_led_probe(struct platform_device *pdev)
goto err;
}
- led = devm_kzalloc(&pdev->dev,
- sizeof(struct da9052_led) * pled->num_leds,
+ led = devm_kcalloc(&pdev->dev,
+ pled->num_leds, sizeof(struct da9052_led),
GFP_KERNEL);
if (!led) {
error = -ENOMEM;