aboutsummaryrefslogtreecommitdiffstats
path: root/fs/sysfs/group.c
diff options
context:
space:
mode:
Diffstat (limited to 'fs/sysfs/group.c')
-rw-r--r--fs/sysfs/group.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/fs/sysfs/group.c b/fs/sysfs/group.c
index 21102158ca33..2dae55c4f7dc 100644
--- a/fs/sysfs/group.c
+++ b/fs/sysfs/group.c
@@ -26,7 +26,7 @@ static void remove_files(struct sysfs_dirent *dir_sd, struct kobject *kobj,
26 26
27 if (grp->attrs) 27 if (grp->attrs)
28 for (attr = grp->attrs; *attr; attr++) 28 for (attr = grp->attrs; *attr; attr++)
29 sysfs_hash_and_remove(dir_sd, NULL, (*attr)->name); 29 sysfs_hash_and_remove(dir_sd, (*attr)->name, NULL);
30 if (grp->bin_attrs) 30 if (grp->bin_attrs)
31 for (bin_attr = grp->bin_attrs; *bin_attr; bin_attr++) 31 for (bin_attr = grp->bin_attrs; *bin_attr; bin_attr++)
32 sysfs_remove_bin_file(kobj, *bin_attr); 32 sysfs_remove_bin_file(kobj, *bin_attr);
@@ -49,8 +49,8 @@ static int create_files(struct sysfs_dirent *dir_sd, struct kobject *kobj,
49 * re-adding (if required) the file. 49 * re-adding (if required) the file.
50 */ 50 */
51 if (update) 51 if (update)
52 sysfs_hash_and_remove(dir_sd, NULL, 52 sysfs_hash_and_remove(dir_sd, (*attr)->name,
53 (*attr)->name); 53 NULL);
54 if (grp->is_visible) { 54 if (grp->is_visible) {
55 mode = grp->is_visible(kobj, *attr, i); 55 mode = grp->is_visible(kobj, *attr, i);
56 if (!mode) 56 if (!mode)
@@ -270,7 +270,7 @@ int sysfs_merge_group(struct kobject *kobj,
270 error = sysfs_add_file(dir_sd, *attr, SYSFS_KOBJ_ATTR); 270 error = sysfs_add_file(dir_sd, *attr, SYSFS_KOBJ_ATTR);
271 if (error) { 271 if (error) {
272 while (--i >= 0) 272 while (--i >= 0)
273 sysfs_hash_and_remove(dir_sd, NULL, (*--attr)->name); 273 sysfs_hash_and_remove(dir_sd, (*--attr)->name, NULL);
274 } 274 }
275 sysfs_put(dir_sd); 275 sysfs_put(dir_sd);
276 276
@@ -292,7 +292,7 @@ void sysfs_unmerge_group(struct kobject *kobj,
292 dir_sd = sysfs_get_dirent(kobj->sd, grp->name); 292 dir_sd = sysfs_get_dirent(kobj->sd, grp->name);
293 if (dir_sd) { 293 if (dir_sd) {
294 for (attr = grp->attrs; *attr; ++attr) 294 for (attr = grp->attrs; *attr; ++attr)
295 sysfs_hash_and_remove(dir_sd, NULL, (*attr)->name); 295 sysfs_hash_and_remove(dir_sd, (*attr)->name, NULL);
296 sysfs_put(dir_sd); 296 sysfs_put(dir_sd);
297 } 297 }
298} 298}
@@ -335,7 +335,7 @@ void sysfs_remove_link_from_group(struct kobject *kobj, const char *group_name,
335 335
336 dir_sd = sysfs_get_dirent(kobj->sd, group_name); 336 dir_sd = sysfs_get_dirent(kobj->sd, group_name);
337 if (dir_sd) { 337 if (dir_sd) {
338 sysfs_hash_and_remove(dir_sd, NULL, link_name); 338 sysfs_hash_and_remove(dir_sd, link_name, NULL);
339 sysfs_put(dir_sd); 339 sysfs_put(dir_sd);
340 } 340 }
341} 341}