treewide: devm_kzalloc() -> devm_kcalloc()
[linux-2.6-microblaze.git] / drivers / gpio / gpio-aspeed.c
index 5e89f1c..b31ae16 100644 (file)
@@ -897,8 +897,8 @@ static int __init aspeed_gpio_probe(struct platform_device *pdev)
 
        /* Allocate a cache of the output registers */
        banks = gpio->config->nr_gpios >> 5;
-       gpio->dcache = devm_kzalloc(&pdev->dev,
-                                   sizeof(u32) * banks, GFP_KERNEL);
+       gpio->dcache = devm_kcalloc(&pdev->dev,
+                                   banks, sizeof(u32), GFP_KERNEL);
        if (!gpio->dcache)
                return -ENOMEM;