|
@@ -949,8 +949,10 @@ static int __devinit ab3100_probe(struct i2c_client *client,
|
|
|
goto exit_no_ops;
|
|
|
|
|
|
/* Set up and register the platform devices. */
|
|
|
- for (i = 0; i < ARRAY_SIZE(ab3100_devs); i++)
|
|
|
- ab3100_devs[i].mfd_data = ab3100_plf_data;
|
|
|
+ for (i = 0; i < ARRAY_SIZE(ab3100_devs); i++) {
|
|
|
+ ab3100_devs[i].platform_data = ab3100_plf_data;
|
|
|
+ ab3100_devs[i].pdata_size = sizeof(struct ab3100_platform_data);
|
|
|
+ }
|
|
|
|
|
|
err = mfd_add_devices(&client->dev, 0, ab3100_devs,
|
|
|
ARRAY_SIZE(ab3100_devs), NULL, 0);
|