diff options
author | Greg Kroah-Hartman <gregkh@suse.de> | 2007-11-02 19:19:59 -0400 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@suse.de> | 2008-01-24 23:40:24 -0500 |
commit | 5c03c7ab886859eb195440dbb6ccb8c30c4e84cc (patch) | |
tree | 16274460957bd2c6c80bb5708ba344bea20d4315 /drivers/base/class.c | |
parent | 830d3cfb16728e2496edc2985ad8f68025135e37 (diff) |
kset: remove decl_subsys macro
This macro is no longer used. ksets should be created dynamically with
a call to kset_create_and_add() not declared statically.
Yes, there are 5 remaining static struct kset usages in the kernel tree,
but they will be fixed up soon.
Cc: Kay Sievers <kay.sievers@vrfy.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'drivers/base/class.c')
-rw-r--r-- | drivers/base/class.c | 11 |
1 files changed, 9 insertions, 2 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 | { |