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:
parent
f3732fd15b
commit
37c55a039a
@ -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 */
|
||||
|
@ -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 */
|
||||
|
Loading…
x
Reference in New Issue
Block a user