treewide: kzalloc() -> kcalloc()
[linux-2.6-microblaze.git] / drivers / mfd / mfd-core.c
index c57e407..94e3f32 100644 (file)
@@ -158,7 +158,7 @@ static int mfd_add_device(struct device *parent, int id,
        if (!pdev)
                goto fail_alloc;
 
-       res = kzalloc(sizeof(*res) * cell->num_resources, GFP_KERNEL);
+       res = kcalloc(cell->num_resources, sizeof(*res), GFP_KERNEL);
        if (!res)
                goto fail_device;