diff options
| author | Patrick Mochel <mochel@osdl.org> | 2002-12-02 01:35:26 -0600 |
|---|---|---|
| committer | Patrick Mochel <mochel@osdl.org> | 2002-12-02 01:35:26 -0600 |
| commit | c445065596bb32adc9bf3f31b50657de41496b1c (patch) | |
| tree | 7876d48e42c22a4ba476151277cd70a5d352601b /include/linux | |
| parent | 6a3b0825ee538bd3a81f5d9d874801c21a08ef12 (diff) | |
driver model: get rid of global device list; minor cleanups.
Since the device subsystem contains a global list of registered objects,
we don't need to keep our own separate list, so we axe it. This also
results in a savings of sizeof(void *) x 2 in the size of each device.
drivers/base/power.c is updated to take the subsystem's rwsem and iterate
over that list of objects.
This leaves only the children list of struct device protected by the driver
model semaphore. This could be removed, but there is one user of it (EDD),
so it can't happen yet.
This patch also removes the driver model spinlock, which isn't used anymore.
Diffstat (limited to 'include/linux')
| -rw-r--r-- | include/linux/device.h | 7 |
1 files changed, 0 insertions, 7 deletions
diff --git a/include/linux/device.h b/include/linux/device.h index 435159cb14b8..c1918942c4cd 100644 --- a/include/linux/device.h +++ b/include/linux/device.h @@ -250,7 +250,6 @@ extern int interface_add_data(struct intf_data *); struct device { - struct list_head g_list; /* node in depth-first order list */ struct list_head node; /* node in sibling list */ struct list_head bus_list; /* node in bus's list */ struct list_head driver_list; @@ -290,12 +289,6 @@ list_to_dev(struct list_head *node) return list_entry(node, struct device, node); } -static inline struct device * -g_list_to_dev(struct list_head *g_list) -{ - return list_entry(g_list, struct device, g_list); -} - static inline void * dev_get_drvdata (struct device *dev) { |
