X-Git-Url: https://git.proxmox.com/?a=blobdiff_plain;f=drivers%2Fregulator%2Ftps65218-regulator.c;h=6209beee10188d6c17e0d9f395367909a4e3aacd;hb=a86854d0c599b3202307abceb68feee4d7061578;hp=1827185beacc4e7f9079ae68a170f9c39003560c;hpb=2246edfaf88dc368e8671b04afd54412625df60a;p=mirror_ubuntu-jammy-kernel.git diff --git a/drivers/regulator/tps65218-regulator.c b/drivers/regulator/tps65218-regulator.c index 1827185beacc..6209beee1018 100644 --- a/drivers/regulator/tps65218-regulator.c +++ b/drivers/regulator/tps65218-regulator.c @@ -324,8 +324,9 @@ static int tps65218_regulator_probe(struct platform_device *pdev) config.regmap = tps->regmap; /* Allocate memory for strobes */ - tps->strobes = devm_kzalloc(&pdev->dev, sizeof(u8) * - TPS65218_NUM_REGULATOR, GFP_KERNEL); + tps->strobes = devm_kcalloc(&pdev->dev, + TPS65218_NUM_REGULATOR, sizeof(u8), + GFP_KERNEL); if (!tps->strobes) return -ENOMEM;