summaryrefslogtreecommitdiff
path: root/include/linux/device.h
diff options
context:
space:
mode:
authorPatrick Mochel <mochel@osdl.org>2003-01-04 00:18:14 -0600
committerPatrick Mochel <mochel@osdl.org>2003-01-04 00:18:14 -0600
commit46dbdc4e7e5c8814abebce64e4ba17bd5abf87ae (patch)
treec31f732bd44ff970f4eaa32aa5007e5b27e22c9d /include/linux/device.h
parent23066070bb05cdf6fc94af43ca8f444bc293f93e (diff)
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).
Diffstat (limited to 'include/linux/device.h')
-rw-r--r--include/linux/device.h5
1 files changed, 2 insertions, 3 deletions
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);