From 72b0a6503f8519980a4734bcdbb35a9ec6cd6347 Mon Sep 17 00:00:00 2001 From: Jean-Christophe PLAGNIOL-VILLARD Date: Thu, 20 Sep 2012 07:36:44 +0200 Subject: driver: register bus Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD Signed-off-by: Sascha Hauer --- include/driver.h | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'include/driver.h') 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 { -- cgit v1.2.3