]> Pileus Git - ~andy/linux/blobdiff - drivers/mfd/mfd-core.c
Merge branch 'x86-x32-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git...
[~andy/linux] / drivers / mfd / mfd-core.c
index 411f523d4878bd1cec6f8783ca6c99d6b57b669e..ffc3d48676ae67c5c838700d212310025ec8f2da 100644 (file)
@@ -162,7 +162,7 @@ int mfd_add_devices(struct device *parent, int id,
        atomic_t *cnts;
 
        /* initialize reference counting for all cells */
-       cnts = kcalloc(sizeof(*cnts), n_devs, GFP_KERNEL);
+       cnts = kcalloc(n_devs, sizeof(*cnts), GFP_KERNEL);
        if (!cnts)
                return -ENOMEM;