diff options
Diffstat (limited to 'fs/gfs2/locking/dlm/sysfs.c')
-rw-r--r-- | fs/gfs2/locking/dlm/sysfs.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/gfs2/locking/dlm/sysfs.c b/fs/gfs2/locking/dlm/sysfs.c index d9fe3ca40e18..ae9e6a25fe2b 100644 --- a/fs/gfs2/locking/dlm/sysfs.c +++ b/fs/gfs2/locking/dlm/sysfs.c | |||
@@ -190,7 +190,6 @@ static struct kobj_type gdlm_ktype = { | |||
190 | }; | 190 | }; |
191 | 191 | ||
192 | static struct kset gdlm_kset = { | 192 | static struct kset gdlm_kset = { |
193 | .kobj = {.name = "lock_dlm",}, | ||
194 | .ktype = &gdlm_ktype, | 193 | .ktype = &gdlm_ktype, |
195 | }; | 194 | }; |
196 | 195 | ||
@@ -224,6 +223,7 @@ int gdlm_sysfs_init(void) | |||
224 | { | 223 | { |
225 | int error; | 224 | int error; |
226 | 225 | ||
226 | kobject_set_name(&gdlm_kset.kobj, "lock_dlm"); | ||
227 | kobj_set_kset_s(&gdlm_kset, kernel_subsys); | 227 | kobj_set_kset_s(&gdlm_kset, kernel_subsys); |
228 | error = kset_register(&gdlm_kset); | 228 | error = kset_register(&gdlm_kset); |
229 | if (error) | 229 | if (error) |