Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 75738
b: refs/heads/master
c: 191e186
h: refs/heads/master
v: v3
  • Loading branch information
Greg Kroah-Hartman committed Jan 25, 2008
1 parent 3098351 commit 082ec28
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 8 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 69d8e1389551b107b1a8ec70c280cb7a56096666
refs/heads/master: 191e186bd0589e28496745275157323a6f7902ca
13 changes: 6 additions & 7 deletions trunk/fs/debugfs/inode.c
Original file line number Diff line number Diff line change
Expand Up @@ -426,28 +426,27 @@ struct dentry *debugfs_rename(struct dentry *old_dir, struct dentry *old_dentry,
}
EXPORT_SYMBOL_GPL(debugfs_rename);

static decl_subsys(debug, NULL);
static struct kobject *debug_kobj;

static int __init debugfs_init(void)
{
int retval;

debug_subsys.kobj.kset = &kernel_subsys;
retval = subsystem_register(&debug_subsys);
if (retval)
return retval;
debug_kobj = kobject_create_and_add("debug", &kernel_subsys.kobj);
if (!debug_kobj)
return -EINVAL;

retval = register_filesystem(&debug_fs_type);
if (retval)
subsystem_unregister(&debug_subsys);
kobject_unregister(debug_kobj);
return retval;
}

static void __exit debugfs_exit(void)
{
simple_release_fs(&debugfs_mount, &debugfs_mount_count);
unregister_filesystem(&debug_fs_type);
subsystem_unregister(&debug_subsys);
kobject_unregister(debug_kobj);
}

core_initcall(debugfs_init);
Expand Down

0 comments on commit 082ec28

Please sign in to comment.