diff options
-rw-r--r-- | drivers/base/class.c | 11 | ||||
-rw-r--r-- | include/linux/kobject.h | 6 |
2 files changed, 9 insertions, 8 deletions
diff --git a/drivers/base/class.c b/drivers/base/class.c index d8a92c650b43..304f90eb9b00 100644 --- a/drivers/base/class.c +++ b/drivers/base/class.c | |||
@@ -453,8 +453,15 @@ static struct kset_uevent_ops class_uevent_ops = { | |||
453 | .uevent = class_uevent, | 453 | .uevent = class_uevent, |
454 | }; | 454 | }; |
455 | 455 | ||
456 | static decl_subsys(class_obj, &class_uevent_ops); | 456 | /* |
457 | 457 | * DO NOT copy how this is created, kset_create_and_add() should be | |
458 | * called, but this is a hold-over from the old-way and will be deleted | ||
459 | * entirely soon. | ||
460 | */ | ||
461 | static struct kset class_obj_subsys = { | ||
462 | .kobj = { .k_name = "class_obj", }, | ||
463 | .uevent_ops = &class_uevent_ops, | ||
464 | }; | ||
458 | 465 | ||
459 | static int class_device_add_attrs(struct class_device * cd) | 466 | static int class_device_add_attrs(struct class_device * cd) |
460 | { | 467 | { |
diff --git a/include/linux/kobject.h b/include/linux/kobject.h index 673623f18464..9da3523e4a65 100644 --- a/include/linux/kobject.h +++ b/include/linux/kobject.h | |||
@@ -198,12 +198,6 @@ extern struct kobject * kset_find_obj(struct kset *, const char *); | |||
198 | #define set_kset_name(str) .kset = { .kobj = { .k_name = str } } | 198 | #define set_kset_name(str) .kset = { .kobj = { .k_name = str } } |
199 | 199 | ||
200 | 200 | ||
201 | #define decl_subsys(_name,_uevent_ops) \ | ||
202 | struct kset _name##_subsys = { \ | ||
203 | .kobj = { .k_name = __stringify(_name) }, \ | ||
204 | .uevent_ops =_uevent_ops, \ | ||
205 | } | ||
206 | |||
207 | /* The global /sys/kernel/ kset for people to chain off of */ | 201 | /* The global /sys/kernel/ kset for people to chain off of */ |
208 | extern struct kset *kernel_kset; | 202 | extern struct kset *kernel_kset; |
209 | /* The global /sys/hypervisor/ kobject for people to chain off of */ | 203 | /* The global /sys/hypervisor/ kobject for people to chain off of */ |