aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/base
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/base')
-rw-r--r--drivers/base/bus.c6
-rw-r--r--drivers/base/class.c4
2 files changed, 5 insertions, 5 deletions
diff --git a/drivers/base/bus.c b/drivers/base/bus.c
index 6796d3e46053..871607b7c876 100644
--- a/drivers/base/bus.c
+++ b/drivers/base/bus.c
@@ -854,7 +854,7 @@ int bus_register(struct bus_type * bus)
854 bus->subsys.kobj.kset = bus_kset; 854 bus->subsys.kobj.kset = bus_kset;
855 bus->subsys.kobj.ktype = &bus_ktype; 855 bus->subsys.kobj.ktype = &bus_ktype;
856 856
857 retval = subsystem_register(&bus->subsys); 857 retval = kset_register(&bus->subsys);
858 if (retval) 858 if (retval)
859 goto out; 859 goto out;
860 860
@@ -900,7 +900,7 @@ bus_drivers_fail:
900bus_devices_fail: 900bus_devices_fail:
901 bus_remove_file(bus, &bus_attr_uevent); 901 bus_remove_file(bus, &bus_attr_uevent);
902bus_uevent_fail: 902bus_uevent_fail:
903 subsystem_unregister(&bus->subsys); 903 kset_unregister(&bus->subsys);
904out: 904out:
905 return retval; 905 return retval;
906} 906}
@@ -920,7 +920,7 @@ void bus_unregister(struct bus_type * bus)
920 kset_unregister(bus->drivers_kset); 920 kset_unregister(bus->drivers_kset);
921 kset_unregister(bus->devices_kset); 921 kset_unregister(bus->devices_kset);
922 bus_remove_file(bus, &bus_attr_uevent); 922 bus_remove_file(bus, &bus_attr_uevent);
923 subsystem_unregister(&bus->subsys); 923 kset_unregister(&bus->subsys);
924} 924}
925 925
926int bus_register_notifier(struct bus_type *bus, struct notifier_block *nb) 926int bus_register_notifier(struct bus_type *bus, struct notifier_block *nb)
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
170static void class_create_release(struct class *cls) 170static void class_create_release(struct class *cls)