diff options
Diffstat (limited to 'drivers/mfd/ab3550-core.c')
-rw-r--r-- | drivers/mfd/ab3550-core.c | 12 |
1 files changed, 5 insertions, 7 deletions
diff --git a/drivers/mfd/ab3550-core.c b/drivers/mfd/ab3550-core.c index 5fbca346b998..c12d04285226 100644 --- a/drivers/mfd/ab3550-core.c +++ b/drivers/mfd/ab3550-core.c | |||
@@ -1053,17 +1053,17 @@ static inline void ab3550_setup_debugfs(struct ab3550 *ab) | |||
1053 | goto exit_destroy_dir; | 1053 | goto exit_destroy_dir; |
1054 | 1054 | ||
1055 | ab3550_bank_file = debugfs_create_file("register-bank", | 1055 | ab3550_bank_file = debugfs_create_file("register-bank", |
1056 | (S_IRUGO | S_IWUGO), ab3550_dir, ab, &ab3550_bank_fops); | 1056 | (S_IRUGO | S_IWUSR), ab3550_dir, ab, &ab3550_bank_fops); |
1057 | if (!ab3550_bank_file) | 1057 | if (!ab3550_bank_file) |
1058 | goto exit_destroy_reg; | 1058 | goto exit_destroy_reg; |
1059 | 1059 | ||
1060 | ab3550_address_file = debugfs_create_file("register-address", | 1060 | ab3550_address_file = debugfs_create_file("register-address", |
1061 | (S_IRUGO | S_IWUGO), ab3550_dir, ab, &ab3550_address_fops); | 1061 | (S_IRUGO | S_IWUSR), ab3550_dir, ab, &ab3550_address_fops); |
1062 | if (!ab3550_address_file) | 1062 | if (!ab3550_address_file) |
1063 | goto exit_destroy_bank; | 1063 | goto exit_destroy_bank; |
1064 | 1064 | ||
1065 | ab3550_val_file = debugfs_create_file("register-value", | 1065 | ab3550_val_file = debugfs_create_file("register-value", |
1066 | (S_IRUGO | S_IWUGO), ab3550_dir, ab, &ab3550_val_fops); | 1066 | (S_IRUGO | S_IWUSR), ab3550_dir, ab, &ab3550_val_fops); |
1067 | if (!ab3550_val_file) | 1067 | if (!ab3550_val_file) |
1068 | goto exit_destroy_address; | 1068 | goto exit_destroy_address; |
1069 | 1069 | ||
@@ -1320,10 +1320,8 @@ static int __init ab3550_probe(struct i2c_client *client, | |||
1320 | goto exit_no_ops; | 1320 | goto exit_no_ops; |
1321 | 1321 | ||
1322 | /* Set up and register the platform devices. */ | 1322 | /* Set up and register the platform devices. */ |
1323 | for (i = 0; i < AB3550_NUM_DEVICES; i++) { | 1323 | for (i = 0; i < AB3550_NUM_DEVICES; i++) |
1324 | ab3550_devs[i].platform_data = ab3550_plf_data->dev_data[i]; | 1324 | ab3550_devs[i].mfd_data = ab3550_plf_data->dev_data[i]; |
1325 | ab3550_devs[i].data_size = ab3550_plf_data->dev_data_sz[i]; | ||
1326 | } | ||
1327 | 1325 | ||
1328 | err = mfd_add_devices(&client->dev, 0, ab3550_devs, | 1326 | err = mfd_add_devices(&client->dev, 0, ab3550_devs, |
1329 | ARRAY_SIZE(ab3550_devs), NULL, | 1327 | ARRAY_SIZE(ab3550_devs), NULL, |