From 8f1640cbd899a01f3c4be8b48d3a4cf4a910c76f Mon Sep 17 00:00:00 2001 From: Patrick Mochel Date: Mon, 27 May 2002 19:58:58 -0700 Subject: deivce model: actually compile and use bus drivers --- include/linux/device.h | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'include/linux/device.h') diff --git a/include/linux/device.h b/include/linux/device.h index 970b974918d6..078c65e02370 100644 --- a/include/linux/device.h +++ b/include/linux/device.h @@ -63,6 +63,11 @@ struct bus_type { list_t node; list_t devices; + list_t drivers; + + struct driver_dir_entry dir; + struct driver_dir_entry device_dir; + struct driver_dir_entry driver_dir; }; @@ -102,6 +107,7 @@ struct device { atomic_t refcount; /* refcount to make sure the device * persists for the right amount of time */ + struct bus_type * bus; /* type of bus device is on */ struct driver_dir_entry dir; struct device_driver *driver; /* which driver has allocated this -- cgit v1.2.3