]> pilppa.com Git - linux-2.6-omap-h63xx.git/commitdiff
kobject: remove subsystem_(un)register functions
authorGreg Kroah-Hartman <gregkh@suse.de>
Tue, 6 Nov 2007 23:03:30 +0000 (15:03 -0800)
committerGreg Kroah-Hartman <gregkh@suse.de>
Fri, 25 Jan 2008 04:40:24 +0000 (20:40 -0800)
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>
drivers/base/bus.c
drivers/base/class.c
include/linux/kobject.h
lib/kobject.c

index 6796d3e46053bb4ef639863c982cee030ea54511..871607b7c876ce67d78ca31f0477d8d1356bf67d 100644 (file)
@@ -854,7 +854,7 @@ int bus_register(struct bus_type * bus)
        bus->subsys.kobj.kset = bus_kset;
        bus->subsys.kobj.ktype = &bus_ktype;
 
-       retval = subsystem_register(&bus->subsys);
+       retval = kset_register(&bus->subsys);
        if (retval)
                goto out;
 
@@ -900,7 +900,7 @@ bus_drivers_fail:
 bus_devices_fail:
        bus_remove_file(bus, &bus_attr_uevent);
 bus_uevent_fail:
-       subsystem_unregister(&bus->subsys);
+       kset_unregister(&bus->subsys);
 out:
        return retval;
 }
@@ -920,7 +920,7 @@ void bus_unregister(struct bus_type * bus)
        kset_unregister(bus->drivers_kset);
        kset_unregister(bus->devices_kset);
        bus_remove_file(bus, &bus_attr_uevent);
-       subsystem_unregister(&bus->subsys);
+       kset_unregister(&bus->subsys);
 }
 
 int bus_register_notifier(struct bus_type *bus, struct notifier_block *nb)
index 304f90eb9b00df5188b3992236354885bd51a214..3ffcda753e7804705e4096e13843ccb162224be1 100644 (file)
@@ -152,7 +152,7 @@ int class_register(struct class * cls)
        cls->subsys.kobj.kset = class_kset;
        cls->subsys.kobj.ktype = &class_ktype;
 
-       error = subsystem_register(&cls->subsys);
+       error = kset_register(&cls->subsys);
        if (!error) {
                error = add_class_attrs(class_get(cls));
                class_put(cls);
@@ -164,7 +164,7 @@ void class_unregister(struct class * cls)
 {
        pr_debug("device class '%s': unregistering\n", cls->name);
        remove_class_attrs(cls);
-       subsystem_unregister(&cls->subsys);
+       kset_unregister(&cls->subsys);
 }
 
 static void class_create_release(struct class *cls)
index 0930efdcc0948d4f4ae9b436cb10fa91ab8920ee..78c851b4e67e51ce706eaa85330bda5375f19d51 100644 (file)
@@ -207,9 +207,6 @@ extern struct kset *power_kset;
 /* The global /sys/firmware/ kobject for people to chain off of */
 extern struct kobject *firmware_kobj;
 
-extern int __must_check subsystem_register(struct kset *);
-extern void subsystem_unregister(struct kset *);
-
 #if defined(CONFIG_HOTPLUG)
 int kobject_uevent(struct kobject *kobj, enum kobject_action action);
 int kobject_uevent_env(struct kobject *kobj, enum kobject_action action,
index c742ac25228a078e34032eb01f88f3d928f0c08e..7919c32a3a15888bcc92b29b9d898db530fb1107 100644 (file)
@@ -800,16 +800,6 @@ struct kobject * kset_find_obj(struct kset * kset, const char * name)
        return ret;
 }
 
-int subsystem_register(struct kset *s)
-{
-       return kset_register(s);
-}
-
-void subsystem_unregister(struct kset *s)
-{
-       kset_unregister(s);
-}
-
 static void kset_release(struct kobject *kobj)
 {
        struct kset *kset = container_of(kobj, struct kset, kobj);
@@ -904,6 +894,3 @@ EXPORT_SYMBOL(kobject_del);
 
 EXPORT_SYMBOL(kset_register);
 EXPORT_SYMBOL(kset_unregister);
-
-EXPORT_SYMBOL(subsystem_register);
-EXPORT_SYMBOL(subsystem_unregister);