From 46dbdc4e7e5c8814abebce64e4ba17bd5abf87ae Mon Sep 17 00:00:00 2001 From: Patrick Mochel Date: Sat, 4 Jan 2003 00:18:14 -0600 Subject: driver model: clean up struct bus_type a bit. - Remove devices list, in favor of using the list in the subordinate devices subsystem. - Rename devsubsys to 'devices' and drvsubsys to 'drivers'. - Use bus's rwsem when iterating over drivers, instead of the subordinate driver subsystem's. (We use that one when adding the driver, and binding it to devices). --- include/linux/device.h | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'include/linux/device.h') diff --git a/include/linux/device.h b/include/linux/device.h index 1552ec5a4abd..e04fcb87aca6 100644 --- a/include/linux/device.h +++ b/include/linux/device.h @@ -66,9 +66,8 @@ struct bus_type { char * name; struct subsystem subsys; - struct subsystem drvsubsys; - struct subsystem devsubsys; - struct list_head devices; + struct subsystem drivers; + struct subsystem devices; int (*match)(struct device * dev, struct device_driver * drv); struct device * (*add) (struct device * parent, char * bus_id); -- cgit v1.2.3