]> git.karo-electronics.de Git - karo-tx-linux.git/blobdiff - fs/sysfs/group.c
sysfs: merge regular and bin file handling
[karo-tx-linux.git] / fs / sysfs / group.c
index 2dae55c4f7dce9c577321794bdc08e65e473dfea..1898a10e38ce8ccef26a687882c637f349ac5b29 100644 (file)
@@ -111,7 +111,7 @@ static int internal_create_group(struct kobject *kobj, int update,
        error = create_files(sd, kobj, grp, update);
        if (error) {
                if (grp->name)
-                       sysfs_remove_subdir(sd);
+                       sysfs_remove(sd);
        }
        sysfs_put(sd);
        return error;
@@ -219,7 +219,7 @@ void sysfs_remove_group(struct kobject *kobj,
 
        remove_files(sd, kobj, grp);
        if (grp->name)
-               sysfs_remove_subdir(sd);
+               sysfs_remove(sd);
 
        sysfs_put(sd);
 }