diff options
Diffstat (limited to 'include/linux/kobject.h')
| -rw-r--r-- | include/linux/kobject.h | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/include/linux/kobject.h b/include/linux/kobject.h index c0fb535d7ac..8b45946e850 100644 --- a/include/linux/kobject.h +++ b/include/linux/kobject.h | |||
| @@ -63,7 +63,6 @@ extern const char *kobject_actions[]; | |||
| 63 | 63 | ||
| 64 | struct kobject { | 64 | struct kobject { |
| 65 | const char * k_name; | 65 | const char * k_name; |
| 66 | char name[KOBJ_NAME_LEN]; | ||
| 67 | struct kref kref; | 66 | struct kref kref; |
| 68 | struct list_head entry; | 67 | struct list_head entry; |
| 69 | struct kobject * parent; | 68 | struct kobject * parent; |
| @@ -188,18 +187,18 @@ extern struct kobject * kset_find_obj(struct kset *, const char *); | |||
| 188 | * Use this when initializing an embedded kset with no other | 187 | * Use this when initializing an embedded kset with no other |
| 189 | * fields to initialize. | 188 | * fields to initialize. |
| 190 | */ | 189 | */ |
| 191 | #define set_kset_name(str) .kset = { .kobj = { .name = str } } | 190 | #define set_kset_name(str) .kset = { .kobj = { .k_name = str } } |
| 192 | 191 | ||
| 193 | 192 | ||
| 194 | #define decl_subsys(_name,_type,_uevent_ops) \ | 193 | #define decl_subsys(_name,_type,_uevent_ops) \ |
| 195 | struct kset _name##_subsys = { \ | 194 | struct kset _name##_subsys = { \ |
| 196 | .kobj = { .name = __stringify(_name) }, \ | 195 | .kobj = { .k_name = __stringify(_name) }, \ |
| 197 | .ktype = _type, \ | 196 | .ktype = _type, \ |
| 198 | .uevent_ops =_uevent_ops, \ | 197 | .uevent_ops =_uevent_ops, \ |
| 199 | } | 198 | } |
| 200 | #define decl_subsys_name(_varname,_name,_type,_uevent_ops) \ | 199 | #define decl_subsys_name(_varname,_name,_type,_uevent_ops) \ |
| 201 | struct kset _varname##_subsys = { \ | 200 | struct kset _varname##_subsys = { \ |
| 202 | .kobj = { .name = __stringify(_name) }, \ | 201 | .kobj = { .k_name = __stringify(_name) }, \ |
| 203 | .ktype = _type, \ | 202 | .ktype = _type, \ |
| 204 | .uevent_ops =_uevent_ops, \ | 203 | .uevent_ops =_uevent_ops, \ |
| 205 | } | 204 | } |
