Project

General

Profile

Bug #747 ยป init-devclass.diff

corecode, 07/29/2007 10:12 AM

View differences:

kern/subr_bus.c 29 Jul 2007 09:23:09 -0000
driver = dmd->dmd_driver;
PDEBUG(("Loading module: driver %s on bus %s",
DRIVERNAME(driver), dmd->dmd_busname));
error = devclass_add_driver(bus_devclass, driver);
if (error)
break;
/*
* If the driver has any base classes, make the
......
parentname = driver->baseclasses[0]->name;
else
parentname = NULL;
*dmd->dmd_devclass = devclass_find_internal(driver->name,
*dmd->dmd_devclass = devclass_find_internal(driver->name,
parentname, TRUE);
error = devclass_add_driver(bus_devclass, driver);
if (error)
break;
break;
case MOD_UNLOAD:
    (1-1/1)