summaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorJean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>2012-11-03 16:11:04 +0100
committerSascha Hauer <s.hauer@pengutronix.de>2012-11-19 11:35:31 +0100
commit7ce8a13c26eb47a0aa115f9001a9dcc7805085e9 (patch)
treea93e5cfb2bc4670008b3711ba3d8248f1103d99c /include
parent543cf11ad41a11ab36984e5ea35761c02a66a0db (diff)
downloadbarebox-7ce8a13c26eb47a0aa115f9001a9dcc7805085e9.tar.gz
barebox-7ce8a13c26eb47a0aa115f9001a9dcc7805085e9.tar.xz
bus_for_each_device/bus_for_each_driver: add () to allow use &bus
Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'include')
-rw-r--r--include/driver.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/include/driver.h b/include/driver.h
index f8d815c619..6ae7ffdaba 100644
--- a/include/driver.h
+++ b/include/driver.h
@@ -408,11 +408,11 @@ extern struct list_head bus_list;
/* Iterate over all devices of a bus
*/
-#define bus_for_each_device(bus, dev) list_for_each_entry(dev, &bus->device_list, bus_list)
+#define bus_for_each_device(bus, dev) list_for_each_entry(dev, &(bus)->device_list, bus_list)
/* Iterate over all drivers of a bus
*/
-#define bus_for_each_driver(bus, drv) list_for_each_entry(drv, &bus->driver_list, bus_list)
+#define bus_for_each_driver(bus, drv) list_for_each_entry(drv, &(bus)->driver_list, bus_list)
extern struct bus_type platform_bus;