diff options
author | Greg Kroah-Hartman <gregkh@suse.de> | 2007-10-29 15:13:17 -0400 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@suse.de> | 2008-01-24 23:40:14 -0500 |
commit | bd35b93d8049ab47b5bfaf6b10ba39badf21d1c3 (patch) | |
tree | bac82e14d960b2c7011b7f660a93f07e922f8a97 /fs/gfs2/locking/dlm/sysfs.c | |
parent | e5e38a86c0bbe8475543f10f0a48393a45df5182 (diff) |
kset: convert kernel_subsys to use kset_create
Dynamically create the kset instead of declaring it statically. We also
rename kernel_subsys to kernel_kset to catch all users of this symbol
with a build error instead of an easy-to-ignore build warning.
Cc: Kay Sievers <kay.sievers@vrfy.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'fs/gfs2/locking/dlm/sysfs.c')
-rw-r--r-- | fs/gfs2/locking/dlm/sysfs.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/fs/gfs2/locking/dlm/sysfs.c b/fs/gfs2/locking/dlm/sysfs.c index 0a8614088ec6..1a92b6f7bc10 100644 --- a/fs/gfs2/locking/dlm/sysfs.c +++ b/fs/gfs2/locking/dlm/sysfs.c | |||
@@ -219,8 +219,7 @@ void gdlm_kobject_release(struct gdlm_ls *ls) | |||
219 | 219 | ||
220 | int gdlm_sysfs_init(void) | 220 | int gdlm_sysfs_init(void) |
221 | { | 221 | { |
222 | gdlm_kset = kset_create_and_add("lock_dlm", NULL, | 222 | gdlm_kset = kset_create_and_add("lock_dlm", NULL, &kernel_kset->kobj); |
223 | &kernel_subsys.kobj); | ||
224 | if (!gdlm_kset) { | 223 | if (!gdlm_kset) { |
225 | printk(KERN_WARNING "%s: can not create kset\n", __FUNCTION__); | 224 | printk(KERN_WARNING "%s: can not create kset\n", __FUNCTION__); |
226 | return -ENOMEM; | 225 | return -ENOMEM; |