diff options
Diffstat (limited to 'drivers/base/bus.c')
-rw-r--r-- | drivers/base/bus.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/drivers/base/bus.c b/drivers/base/bus.c index 871607b7c876..8335a1079b0e 100644 --- a/drivers/base/bus.c +++ b/drivers/base/bus.c | |||
@@ -935,6 +935,12 @@ int bus_unregister_notifier(struct bus_type *bus, struct notifier_block *nb) | |||
935 | } | 935 | } |
936 | EXPORT_SYMBOL_GPL(bus_unregister_notifier); | 936 | EXPORT_SYMBOL_GPL(bus_unregister_notifier); |
937 | 937 | ||
938 | struct kset *bus_get_kset(struct bus_type *bus) | ||
939 | { | ||
940 | return &bus->subsys; | ||
941 | } | ||
942 | EXPORT_SYMBOL_GPL(bus_get_kset); | ||
943 | |||
938 | int __init buses_init(void) | 944 | int __init buses_init(void) |
939 | { | 945 | { |
940 | bus_kset = kset_create_and_add("bus", &bus_uevent_ops, NULL); | 946 | bus_kset = kset_create_and_add("bus", &bus_uevent_ops, NULL); |