Commit ec451dbb authored by Patrick Mochel's avatar Patrick Mochel

driver model: Make sure we initialize drivers' class_list.

parent 33ba9e23
...@@ -82,6 +82,7 @@ void put_driver(struct device_driver * drv) ...@@ -82,6 +82,7 @@ void put_driver(struct device_driver * drv)
int driver_register(struct device_driver * drv) int driver_register(struct device_driver * drv)
{ {
INIT_LIST_HEAD(&drv->devices); INIT_LIST_HEAD(&drv->devices);
INIT_LIST_HEAD(&drv->class_list);
init_MUTEX_LOCKED(&drv->unload_sem); init_MUTEX_LOCKED(&drv->unload_sem);
return bus_add_driver(drv); return bus_add_driver(drv);
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment