diff --git a/sys/amd64/amd64/legacy.c b/sys/amd64/amd64/legacy.c index 01c497f98c65..2247c9b4f010 100644 --- a/sys/amd64/amd64/legacy.c +++ b/sys/amd64/amd64/legacy.c @@ -105,10 +105,10 @@ legacy_identify(driver_t *driver, device_t parent) { /* - * Add child device with order of 1 so it gets probed - * after ACPI (which is at order 0. + * Add child device with order of 11 so it gets probed + * after ACPI (which is at order 10). */ - if (BUS_ADD_CHILD(parent, 1, "legacy", 0) == NULL) + if (BUS_ADD_CHILD(parent, 11, "legacy", 0) == NULL) panic("legacy: could not attach"); } diff --git a/sys/dev/acpica/acpi.c b/sys/dev/acpica/acpi.c index 3c19ef51e62b..448c626916c1 100644 --- a/sys/dev/acpica/acpi.c +++ b/sys/dev/acpica/acpi.c @@ -350,7 +350,7 @@ acpi_identify(driver_t *driver, device_t parent) snprintf(acpi_ca_version, sizeof(acpi_ca_version), "%x", ACPI_CA_VERSION); /* Attach the actual ACPI device. */ - if ((child = BUS_ADD_CHILD(parent, 0, "acpi", 0)) == NULL) { + if ((child = BUS_ADD_CHILD(parent, 10, "acpi", 0)) == NULL) { device_printf(parent, "device_identify failed\n"); return_VOID; } diff --git a/sys/i386/bios/smapi.c b/sys/i386/bios/smapi.c index 9879c90334de..a97e2a9221c9 100644 --- a/sys/i386/bios/smapi.c +++ b/sys/i386/bios/smapi.c @@ -166,7 +166,7 @@ smapi_identify (driver_t *driver, device_t parent) rid = 0; length = ADDR2HDR(addr)->length; - child = BUS_ADD_CHILD(parent, 0, "smapi", -1); + child = BUS_ADD_CHILD(parent, 5, "smapi", -1); device_set_driver(child, driver); bus_set_resource(child, SYS_RES_MEMORY, rid, addr, length); device_set_desc(child, "SMAPI BIOS"); diff --git a/sys/i386/bios/smbios.c b/sys/i386/bios/smbios.c index c620b4cc0644..f38d98573993 100644 --- a/sys/i386/bios/smbios.c +++ b/sys/i386/bios/smbios.c @@ -131,7 +131,7 @@ smbios_identify (driver_t *driver, device_t parent) return; } - child = BUS_ADD_CHILD(parent, 0, "smbios", -1); + child = BUS_ADD_CHILD(parent, 5, "smbios", -1); device_set_driver(child, driver); bus_set_resource(child, SYS_RES_MEMORY, rid, addr, length); device_set_desc(child, "System Management BIOS"); diff --git a/sys/i386/bios/vpd.c b/sys/i386/bios/vpd.c index 735efe760e64..246b76d35702 100644 --- a/sys/i386/bios/vpd.c +++ b/sys/i386/bios/vpd.c @@ -128,7 +128,7 @@ vpd_identify (driver_t *driver, device_t parent) rid = 0; length = ADDR2VPD(addr)->Length; - child = BUS_ADD_CHILD(parent, 0, "vpd", -1); + child = BUS_ADD_CHILD(parent, 5, "vpd", -1); device_set_driver(child, driver); bus_set_resource(child, SYS_RES_MEMORY, rid, addr, length); device_set_desc(child, "Vital Product Data Area"); diff --git a/sys/i386/i386/legacy.c b/sys/i386/i386/legacy.c index e5f7e8e67d1f..0cd4dc583297 100644 --- a/sys/i386/i386/legacy.c +++ b/sys/i386/i386/legacy.c @@ -110,10 +110,10 @@ legacy_identify(driver_t *driver, device_t parent) { /* - * Add child device with order of 1 so it gets probed - * after ACPI (which is at order 0. + * Add child device with order of 11 so it gets probed + * after ACPI (which is at order 10). */ - if (BUS_ADD_CHILD(parent, 1, "legacy", 0) == NULL) + if (BUS_ADD_CHILD(parent, 11, "legacy", 0) == NULL) panic("legacy: could not attach"); }