|
@@ -162,7 +162,7 @@ int mfd_add_devices(struct device *parent, int id,
|
|
atomic_t *cnts;
|
|
atomic_t *cnts;
|
|
|
|
|
|
/* initialize reference counting for all cells */
|
|
/* initialize reference counting for all cells */
|
|
- cnts = kcalloc(sizeof(*cnts), n_devs, GFP_KERNEL);
|
|
|
|
|
|
+ cnts = kcalloc(n_devs, sizeof(*cnts), GFP_KERNEL);
|
|
if (!cnts)
|
|
if (!cnts)
|
|
return -ENOMEM;
|
|
return -ENOMEM;
|
|
|
|
|