summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--sys/amd64/amd64/bios.c5
-rw-r--r--sys/i386/i386/bios.c5
2 files changed, 6 insertions, 4 deletions
diff --git a/sys/amd64/amd64/bios.c b/sys/amd64/amd64/bios.c
index 5109e4d..3bee94f 100644
--- a/sys/amd64/amd64/bios.c
+++ b/sys/amd64/amd64/bios.c
@@ -555,8 +555,9 @@ pnpbios_identify(driver_t *driver, device_t parent)
if (pt == NULL)
return;
- /* ACPI already active */
- if (devclass_get_softc(devclass_find("acpi"), 0) != NULL)
+ /* Check to see if ACPI is already active. */
+ dev = devclass_get_device(devclass_find("acpi"), 0);
+ if (dev != NULL && device_is_attached(dev))
return;
/* get count of PnP devices */
diff --git a/sys/i386/i386/bios.c b/sys/i386/i386/bios.c
index 5109e4d..3bee94f 100644
--- a/sys/i386/i386/bios.c
+++ b/sys/i386/i386/bios.c
@@ -555,8 +555,9 @@ pnpbios_identify(driver_t *driver, device_t parent)
if (pt == NULL)
return;
- /* ACPI already active */
- if (devclass_get_softc(devclass_find("acpi"), 0) != NULL)
+ /* Check to see if ACPI is already active. */
+ dev = devclass_get_device(devclass_find("acpi"), 0);
+ if (dev != NULL && device_is_attached(dev))
return;
/* get count of PnP devices */
OpenPOWER on IntegriCloud