Merge tag 'linux-kselftest-4.18-rc1-2' of git://git.kernel.org/pub/scm/linux/kernel...
[linux-2.6-block.git] / drivers / regulator / tps80031-regulator.c
index d4cc60ad18ae4b39cc2c484e971b0075e51231ef..1001147404c38ecbc091e618111bb06f9352ba29 100644 (file)
@@ -691,8 +691,8 @@ static int tps80031_regulator_probe(struct platform_device *pdev)
                return -EINVAL;
        }
 
-       pmic = devm_kzalloc(&pdev->dev,
-                       TPS80031_REGULATOR_MAX * sizeof(*pmic), GFP_KERNEL);
+       pmic = devm_kcalloc(&pdev->dev,
+                       TPS80031_REGULATOR_MAX, sizeof(*pmic), GFP_KERNEL);
        if (!pmic)
                return -ENOMEM;