treewide: kzalloc() -> kcalloc()
[linux-2.6-microblaze.git] / drivers / pinctrl / spear / pinctrl-spear.c
index efe79d3..c4f8503 100644 (file)
@@ -172,7 +172,7 @@ static int spear_pinctrl_dt_node_to_map(struct pinctrl_dev *pctldev,
                return -ENODEV;
        }
 
-       *map = kzalloc(sizeof(**map) * count, GFP_KERNEL);
+       *map = kcalloc(count, sizeof(**map), GFP_KERNEL);
        if (!*map)
                return -ENOMEM;