diff options
author | Greg Kroah-Hartman <gregkh@suse.de> | 2002-04-09 15:14:34 -0400 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@suse.de> | 2007-04-27 13:57:29 -0400 |
commit | 74e9f5fa1570f956c96dd5d3f1053daedbbf01a0 (patch) | |
tree | 095bfed9efced3538507d16eb93010d91c074f5f /include/linux/device.h | |
parent | c6a46696f97ff260a4ecce5e287f8de4b9d7fe14 (diff) |
Driver core: remove unneeded completion from driver release path
The completion in the driver release path is due to ancient history in
the _very_ early 2.5 days when we were not tracking the module reference
count of attributes. It is not needed at all and can be removed.
Note, we now have an empty release function for the driver structure.
This is due to the fact that drivers are statically allocated in the
system at this point in time, something which I want to change in the
future. But remember, drivers are really code, which is reference
counted by the module, unlike devices, which are data and _must_ be
reference counted properly in order to work correctly.
Cc: Kay Sievers <kay.sievers@vrfy.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'include/linux/device.h')
-rw-r--r-- | include/linux/device.h | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/include/linux/device.h b/include/linux/device.h index eb1fff0b1d2a..c9dc458e8e50 100644 --- a/include/linux/device.h +++ b/include/linux/device.h | |||
@@ -126,7 +126,6 @@ struct device_driver { | |||
126 | const char * name; | 126 | const char * name; |
127 | struct bus_type * bus; | 127 | struct bus_type * bus; |
128 | 128 | ||
129 | struct completion unloaded; | ||
130 | struct kobject kobj; | 129 | struct kobject kobj; |
131 | struct klist klist_devices; | 130 | struct klist klist_devices; |
132 | struct klist_node knode_bus; | 131 | struct klist_node knode_bus; |