summaryrefslogtreecommitdiffstats
path: root/include/driver.h
diff options
context:
space:
mode:
authorJean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>2012-09-20 07:36:44 +0200
committerSascha Hauer <s.hauer@pengutronix.de>2012-09-23 21:15:13 +0200
commit72b0a6503f8519980a4734bcdbb35a9ec6cd6347 (patch)
tree12513db7ebad9cbe7ad92b0de96922e8bef7b763 /include/driver.h
parent33a8fa16c68139c50e839f647cc0b34250c75193 (diff)
downloadbarebox-72b0a6503f8519980a4734bcdbb35a9ec6cd6347.tar.gz
barebox-72b0a6503f8519980a4734bcdbb35a9ec6cd6347.tar.xz
driver: register bus
Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
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 {