init-devclass.diff

corecode, 07/29/2007 10:12 AM

Download (978 Bytes)

View differences:

kern/subr_bus.c 29 Jul 2007 09:23:09 -0000
2618 2618
		driver = dmd->dmd_driver;
2619 2619
		PDEBUG(("Loading module: driver %s on bus %s",
2620 2620
		        DRIVERNAME(driver), dmd->dmd_busname));
2621
		error = devclass_add_driver(bus_devclass, driver);
2622
		if (error)
2623
			break;
2624 2621

  
2625 2622
		/*
2626 2623
		 * If the driver has any base classes, make the
......
2633 2630
			parentname = driver->baseclasses[0]->name;
2634 2631
		else
2635 2632
			parentname = NULL;
2636
	    	*dmd->dmd_devclass = devclass_find_internal(driver->name,
2633
		*dmd->dmd_devclass = devclass_find_internal(driver->name,
2637 2634
							    parentname, TRUE);
2635

  
2636
		error = devclass_add_driver(bus_devclass, driver);
2637
		if (error)
2638
			break;
2638 2639
		break;
2639 2640

  
2640 2641
	case MOD_UNLOAD: