diff options
| author | Patrick Mochel <mochel@osdl.org> | 2003-03-25 03:12:33 -0600 |
|---|---|---|
| committer | Patrick Mochel <mochel@osdl.org> | 2003-03-25 03:12:33 -0600 |
| commit | ec451dbbac134cf7a179a69e9c96bc5f10d5805e (patch) | |
| tree | 42e646df95ddf03071195a99563fdb1ebdde6d22 /drivers/base | |
| parent | 33ba9e2365c1f7b9fa5d8cade594c191214a7835 (diff) | |
driver model: Make sure we initialize drivers' class_list.
Diffstat (limited to 'drivers/base')
| -rw-r--r-- | drivers/base/driver.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/base/driver.c b/drivers/base/driver.c index a7b123878ce4..c843b73c66da 100644 --- a/drivers/base/driver.c +++ b/drivers/base/driver.c @@ -82,6 +82,7 @@ void put_driver(struct device_driver * drv) int driver_register(struct device_driver * drv) { INIT_LIST_HEAD(&drv->devices); + INIT_LIST_HEAD(&drv->class_list); init_MUTEX_LOCKED(&drv->unload_sem); return bus_add_driver(drv); } |
