diff options
author | Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com> | 2012-09-20 07:36:44 +0200 |
---|---|---|
committer | Sascha Hauer <s.hauer@pengutronix.de> | 2012-09-23 21:15:13 +0200 |
commit | 72b0a6503f8519980a4734bcdbb35a9ec6cd6347 (patch) | |
tree | 12513db7ebad9cbe7ad92b0de96922e8bef7b763 /include/driver.h | |
parent | 33a8fa16c68139c50e839f647cc0b34250c75193 (diff) | |
download | barebox-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.h | 8 |
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 { |