treewide: devm_kzalloc() -> devm_kcalloc()
[linux-2.6-block.git] / drivers / pinctrl / pinctrl-lpc18xx.c
index d090f37ca4a114683d69e203532b20dc653c1d35..190f17e4bbdafd287b9dd8d9cdeee4011f80c6c5 100644 (file)
@@ -1308,8 +1308,9 @@ static int lpc18xx_create_group_func_map(struct device *dev,
                }
 
                scu->func[func].ngroups = ngroups;
-               scu->func[func].groups = devm_kzalloc(dev, ngroups *
-                                                     sizeof(char *), GFP_KERNEL);
+               scu->func[func].groups = devm_kcalloc(dev,
+                                                     ngroups, sizeof(char *),
+                                                     GFP_KERNEL);
                if (!scu->func[func].groups)
                        return -ENOMEM;