diff options
author | Greg Kroah-Hartman <gregkh@suse.de> | 2007-11-06 18:03:30 -0500 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@suse.de> | 2008-01-24 23:40:24 -0500 |
commit | 2fb9113b974c3c7c43e76647bd5077238e274e1c (patch) | |
tree | b87912c7d2c7a24b35a9a5e82fe462d7cffcbacb /drivers/base/class.c | |
parent | 0ff21e46630abce11fdaaffabd72bbd4eed5ac2c (diff) |
kobject: remove subsystem_(un)register functions
These functions are no longer used and are the last remants of the old
subsystem crap. So delete them for good.
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 | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/base/class.c b/drivers/base/class.c index 304f90eb9b00..3ffcda753e78 100644 --- a/drivers/base/class.c +++ b/drivers/base/class.c | |||
@@ -152,7 +152,7 @@ int class_register(struct class * cls) | |||
152 | cls->subsys.kobj.kset = class_kset; | 152 | cls->subsys.kobj.kset = class_kset; |
153 | cls->subsys.kobj.ktype = &class_ktype; | 153 | cls->subsys.kobj.ktype = &class_ktype; |
154 | 154 | ||
155 | error = subsystem_register(&cls->subsys); | 155 | error = kset_register(&cls->subsys); |
156 | if (!error) { | 156 | if (!error) { |
157 | error = add_class_attrs(class_get(cls)); | 157 | error = add_class_attrs(class_get(cls)); |
158 | class_put(cls); | 158 | class_put(cls); |
@@ -164,7 +164,7 @@ void class_unregister(struct class * cls) | |||
164 | { | 164 | { |
165 | pr_debug("device class '%s': unregistering\n", cls->name); | 165 | pr_debug("device class '%s': unregistering\n", cls->name); |
166 | remove_class_attrs(cls); | 166 | remove_class_attrs(cls); |
167 | subsystem_unregister(&cls->subsys); | 167 | kset_unregister(&cls->subsys); |
168 | } | 168 | } |
169 | 169 | ||
170 | static void class_create_release(struct class *cls) | 170 | static void class_create_release(struct class *cls) |