diff options
| author | Mike Waychison <michael.waychison@sun.com> | 2005-03-08 17:52:29 -0800 |
|---|---|---|
| committer | Greg Kroah-Hartman <gregkh@suse.de> | 2005-03-08 17:52:29 -0800 |
| commit | db36587d7fea5d9fba0e85a10b82ef134db81aab (patch) | |
| tree | 45cd10e44840a57f5c7e7f6e21f2da0e0dfb0f0c /include/linux | |
| parent | 67642d35e2172ab56ddc26eeba02a0427d4816c6 (diff) | |
[PATCH] driver core: clean driver unload
Get rid of semaphore abuse by converting device_driver->unload_sem
semaphore to device_driver->unloaded completion.
This should get rid of any confusion as well as save a few bytes in the
process.
Signed-off-by: Mike Waychison <michael.waychison@sun.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'include/linux')
| -rw-r--r-- | include/linux/device.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/linux/device.h b/include/linux/device.h index acec2a761ea0..e98232688899 100644 --- a/include/linux/device.h +++ b/include/linux/device.h @@ -102,7 +102,7 @@ struct device_driver { char * name; struct bus_type * bus; - struct semaphore unload_sem; + struct completion unloaded; struct kobject kobj; struct list_head devices; |
