]> pilppa.org Git - linux-2.6-omap-h63xx.git/blobdiff - fs/sysfs/group.c
[PATCH] remove duplicate get_dentry functions in various places
[linux-2.6-omap-h63xx.git] / fs / sysfs / group.c
index f11ac5ea7021c4b325211b2f7e58b6e29fbbc60c..122145b0895cf2daecc748f6d677347cfa57bcfc 100644 (file)
@@ -11,6 +11,7 @@
 #include <linux/kobject.h>
 #include <linux/module.h>
 #include <linux/dcache.h>
+#include <linux/namei.h>
 #include <linux/err.h>
 #include "sysfs.h"
 
@@ -68,7 +69,8 @@ void sysfs_remove_group(struct kobject * kobj,
        struct dentry * dir;
 
        if (grp->name)
-               dir = sysfs_get_dentry(kobj->dentry,grp->name);
+               dir = lookup_one_len(grp->name, kobj->dentry,
+                               strlen(grp->name));
        else
                dir = dget(kobj->dentry);