diff options
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/base/bus.c | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/drivers/base/bus.c b/drivers/base/bus.c index 630956037e18..e3b101077804 100644 --- a/drivers/base/bus.c +++ b/drivers/base/bus.c | |||
@@ -166,7 +166,7 @@ static struct kset_uevent_ops bus_uevent_ops = { | |||
166 | .filter = bus_uevent_filter, | 166 | .filter = bus_uevent_filter, |
167 | }; | 167 | }; |
168 | 168 | ||
169 | static decl_subsys(bus, &bus_uevent_ops); | 169 | static struct kset *bus_kset; |
170 | 170 | ||
171 | 171 | ||
172 | #ifdef CONFIG_HOTPLUG | 172 | #ifdef CONFIG_HOTPLUG |
@@ -767,7 +767,7 @@ EXPORT_SYMBOL_GPL(device_reprobe); | |||
767 | #if 0 | 767 | #if 0 |
768 | struct bus_type * find_bus(char * name) | 768 | struct bus_type * find_bus(char * name) |
769 | { | 769 | { |
770 | struct kobject * k = kset_find_obj(&bus_subsys.kset, name); | 770 | struct kobject * k = kset_find_obj(bus_kset, name); |
771 | return k ? to_bus(k) : NULL; | 771 | return k ? to_bus(k) : NULL; |
772 | } | 772 | } |
773 | #endif /* 0 */ | 773 | #endif /* 0 */ |
@@ -851,7 +851,7 @@ int bus_register(struct bus_type * bus) | |||
851 | if (retval) | 851 | if (retval) |
852 | goto out; | 852 | goto out; |
853 | 853 | ||
854 | bus->subsys.kobj.kset = &bus_subsys; | 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 = subsystem_register(&bus->subsys); |
@@ -935,7 +935,10 @@ EXPORT_SYMBOL_GPL(bus_unregister_notifier); | |||
935 | 935 | ||
936 | int __init buses_init(void) | 936 | int __init buses_init(void) |
937 | { | 937 | { |
938 | return subsystem_register(&bus_subsys); | 938 | bus_kset = kset_create_and_add("bus", &bus_uevent_ops, NULL); |
939 | if (!bus_kset) | ||
940 | return -ENOMEM; | ||
941 | return 0; | ||
939 | } | 942 | } |
940 | 943 | ||
941 | 944 | ||