summaryrefslogtreecommitdiffstats
path: root/include/driver.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/driver.h')
-rw-r--r--include/driver.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/include/driver.h b/include/driver.h
index 705e7d99f2..05670046f8 100644
--- a/include/driver.h
+++ b/include/driver.h
@@ -383,6 +383,14 @@ struct bus_type {
struct list_head list;
};
+int bus_register(struct bus_type *bus);
+
+extern struct list_head bus_list;
+
+/* Iterate over all buses
+ */
+#define for_each_bus(bus) list_for_each_entry(bus, &bus_list, list)
+
extern struct bus_type platform_bus;
struct file_operations {