treewide: devm_kzalloc() -> devm_kcalloc()
[linux-2.6-microblaze.git] / drivers / soc / bcm / raspberrypi-power.c
index f7ed118..a78dfe0 100644 (file)
@@ -165,8 +165,10 @@ static int rpi_power_probe(struct platform_device *pdev)
                return -ENOMEM;
 
        rpi_domains->xlate.domains =
-               devm_kzalloc(dev, sizeof(*rpi_domains->xlate.domains) *
-                            RPI_POWER_DOMAIN_COUNT, GFP_KERNEL);
+               devm_kcalloc(dev,
+                            RPI_POWER_DOMAIN_COUNT,
+                            sizeof(*rpi_domains->xlate.domains),
+                            GFP_KERNEL);
        if (!rpi_domains->xlate.domains)
                return -ENOMEM;