aboutsummaryrefslogtreecommitdiffstats
path: root/fs/sysfs/inode.c
diff options
context:
space:
mode:
Diffstat (limited to 'fs/sysfs/inode.c')
-rw-r--r--fs/sysfs/inode.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/fs/sysfs/inode.c b/fs/sysfs/inode.c
index 963f910c8034..07193d720d92 100644
--- a/fs/sysfs/inode.c
+++ b/fs/sysfs/inode.c
@@ -314,8 +314,8 @@ void sysfs_evict_inode(struct inode *inode)
314 sysfs_put(sd); 314 sysfs_put(sd);
315} 315}
316 316
317int sysfs_hash_and_remove(struct sysfs_dirent *dir_sd, const void *ns, 317int sysfs_hash_and_remove(struct sysfs_dirent *dir_sd, const char *name,
318 const char *name) 318 const void *ns)
319{ 319{
320 struct sysfs_addrm_cxt acxt; 320 struct sysfs_addrm_cxt acxt;
321 struct sysfs_dirent *sd; 321 struct sysfs_dirent *sd;
@@ -328,7 +328,7 @@ int sysfs_hash_and_remove(struct sysfs_dirent *dir_sd, const void *ns,
328 328
329 sysfs_addrm_start(&acxt, dir_sd); 329 sysfs_addrm_start(&acxt, dir_sd);
330 330
331 sd = sysfs_find_dirent(dir_sd, ns, name); 331 sd = sysfs_find_dirent(dir_sd, name, ns);
332 if (sd) 332 if (sd)
333 sysfs_remove_one(&acxt, sd); 333 sysfs_remove_one(&acxt, sd);
334 334