Revert last change. If acpi is loaded or compiled into the kernel, its

devclass will be present even if the driver was disabled by a hint.  Using
device_get_softc() provides the right info even if it's overkill.

Explained by:	jhb
This commit is contained in:
Nate Lawson 2004-06-17 17:27:37 +00:00
parent f3732fd15b
commit 37c55a039a
2 changed files with 2 additions and 2 deletions

View File

@ -556,7 +556,7 @@ pnpbios_identify(driver_t *driver, device_t parent)
return;
/* ACPI already active */
if (devclass_find("acpi") != NULL)
if (devclass_get_softc(devclass_find("acpi"), 0) != NULL)
return;
/* get count of PnP devices */

View File

@ -556,7 +556,7 @@ pnpbios_identify(driver_t *driver, device_t parent)
return;
/* ACPI already active */
if (devclass_find("acpi") != NULL)
if (devclass_get_softc(devclass_find("acpi"), 0) != NULL)
return;
/* get count of PnP devices */