Changeset View
Changeset View
Standalone View
Standalone View
head/sys/mips/mips/nexus.c
Show First 20 Lines • Show All 570 Lines • ▼ Show 20 Lines | nexus_hinted_child(device_t bus, const char *dname, int dunit) | ||||
if (resource_int_value(dname, dunit, "irq", &irq) == 0) { | if (resource_int_value(dname, dunit, "irq", &irq) == 0) { | ||||
result = bus_set_resource(child, SYS_RES_IRQ, 0, irq, 1); | result = bus_set_resource(child, SYS_RES_IRQ, 0, irq, 1); | ||||
if (result != 0) | if (result != 0) | ||||
device_printf(bus, | device_printf(bus, | ||||
"warning: bus_set_resource() failed\n"); | "warning: bus_set_resource() failed\n"); | ||||
} | } | ||||
} | } | ||||
DRIVER_MODULE(nexus, root, nexus_driver, nexus_devclass, 0, 0); | EARLY_DRIVER_MODULE(nexus, root, nexus_driver, nexus_devclass, 0, 0, | ||||
BUS_PASS_BUS + BUS_PASS_ORDER_EARLY); |