From db36587d7fea5d9fba0e85a10b82ef134db81aab Mon Sep 17 00:00:00 2001 From: Mike Waychison Date: Tue, 8 Mar 2005 17:52:29 -0800 Subject: [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 Signed-off-by: Greg Kroah-Hartman --- include/linux/device.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'include/linux') 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; -- cgit v1.2.3