kobject: convert main fs kobject to use kobject_create
This also renames fs_subsys to fs_kobj to catch all current users with a build error instead of a build warning which can easily be missed. Cc: Kay Sievers <kay.sievers@vrfy.org> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
This commit is contained in:
parent
917e865df7
commit
00d2666623
5 changed files with 9 additions and 10 deletions
|
|
@ -795,7 +795,7 @@ static int fuse_sysfs_init(void)
|
|||
{
|
||||
int err;
|
||||
|
||||
fuse_kobj = kobject_create_and_add("fuse", &fs_subsys.kobj);
|
||||
fuse_kobj = kobject_create_and_add("fuse", fs_kobj);
|
||||
if (!fuse_kobj) {
|
||||
err = -ENOMEM;
|
||||
goto out_err;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue