treewide: devm_kzalloc() -> devm_kcalloc()
[linux-2.6-block.git] / drivers / input / matrix-keymap.c
index 8ccefc15c7a4dfcfb03295a681f52620ebf47d4c..8b3a5758451ea21e7d43da670c04da5c5c20a39a 100644 (file)
@@ -170,8 +170,8 @@ int matrix_keypad_build_keymap(const struct matrix_keymap_data *keymap_data,
                return -EINVAL;
 
        if (!keymap) {
-               keymap = devm_kzalloc(input_dev->dev.parent,
-                                     max_keys * sizeof(*keymap),
+               keymap = devm_kcalloc(input_dev->dev.parent,
+                                     max_keys, sizeof(*keymap),
                                      GFP_KERNEL);
                if (!keymap) {
                        dev_err(input_dev->dev.parent,