treewide: devm_kzalloc() -> devm_kcalloc()
[linux-2.6-block.git] / drivers / regulator / pbias-regulator.c
index 8f782d22fdbef61d4566c9bc63bc6120be461cbe..92b41a6a4dc201101e491830dcaa3fe4b8ddd7b9 100644 (file)
@@ -173,8 +173,9 @@ static int pbias_regulator_probe(struct platform_device *pdev)
        if (count < 0)
                return count;
 
-       drvdata = devm_kzalloc(&pdev->dev, sizeof(struct pbias_regulator_data)
-                              * count, GFP_KERNEL);
+       drvdata = devm_kcalloc(&pdev->dev,
+                              count, sizeof(struct pbias_regulator_data),
+                              GFP_KERNEL);
        if (!drvdata)
                return -ENOMEM;