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 8335a1079b0e..9c9027b2c44e 100644 --- a/drivers/base/bus.c +++ b/drivers/base/bus.c | |||
@@ -941,6 +941,12 @@ struct kset *bus_get_kset(struct bus_type *bus) | |||
941 | } | 941 | } |
942 | EXPORT_SYMBOL_GPL(bus_get_kset); | 942 | EXPORT_SYMBOL_GPL(bus_get_kset); |
943 | 943 | ||
944 | struct klist *bus_get_device_klist(struct bus_type *bus) | ||
945 | { | ||
946 | return &bus->klist_devices; | ||
947 | } | ||
948 | EXPORT_SYMBOL_GPL(bus_get_device_klist); | ||
949 | |||
944 | int __init buses_init(void) | 950 | int __init buses_init(void) |
945 | { | 951 | { |
946 | bus_kset = kset_create_and_add("bus", &bus_uevent_ops, NULL); | 952 | bus_kset = kset_create_and_add("bus", &bus_uevent_ops, NULL); |