diff options
Diffstat (limited to 'fs/ocfs2/cluster/masklog.c')
-rw-r--r-- | fs/ocfs2/cluster/masklog.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/fs/ocfs2/cluster/masklog.c b/fs/ocfs2/cluster/masklog.c index 2e975c0a35e1..a93620ce4aca 100644 --- a/fs/ocfs2/cluster/masklog.c +++ b/fs/ocfs2/cluster/masklog.c | |||
@@ -144,7 +144,8 @@ static struct kobj_type mlog_ktype = { | |||
144 | }; | 144 | }; |
145 | 145 | ||
146 | static struct kset mlog_kset = { | 146 | static struct kset mlog_kset = { |
147 | .kobj = {.name = "logmask", .ktype = &mlog_ktype}, | 147 | .kobj = {.name = "logmask"}, |
148 | .ktype = &mlog_ktype | ||
148 | }; | 149 | }; |
149 | 150 | ||
150 | int mlog_sys_init(struct kset *o2cb_subsys) | 151 | int mlog_sys_init(struct kset *o2cb_subsys) |
@@ -157,7 +158,7 @@ int mlog_sys_init(struct kset *o2cb_subsys) | |||
157 | } | 158 | } |
158 | mlog_attr_ptrs[i] = NULL; | 159 | mlog_attr_ptrs[i] = NULL; |
159 | 160 | ||
160 | kobj_set_kset_s(&mlog_kset, o2cb_subsys); | 161 | kobj_set_kset_s(&mlog_kset, *o2cb_subsys); |
161 | return kset_register(&mlog_kset); | 162 | return kset_register(&mlog_kset); |
162 | } | 163 | } |
163 | 164 | ||