treewide: devm_kzalloc() -> devm_kcalloc()
[linux-2.6-microblaze.git] / drivers / spi / spi-ep93xx.c
index e5cc073..f152675 100644 (file)
@@ -671,8 +671,8 @@ static int ep93xx_spi_probe(struct platform_device *pdev)
        master->bits_per_word_mask = SPI_BPW_RANGE_MASK(4, 16);
 
        master->num_chipselect = info->num_chipselect;
-       master->cs_gpios = devm_kzalloc(&master->dev,
-                                       sizeof(int) * master->num_chipselect,
+       master->cs_gpios = devm_kcalloc(&master->dev,
+                                       master->num_chipselect, sizeof(int),
                                        GFP_KERNEL);
        if (!master->cs_gpios) {
                error = -ENOMEM;