We only need the devclass_find() result, not the softc.
This commit is contained in:
parent
b9d38fa25a
commit
345281bc43
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=130510
@ -556,7 +556,7 @@ pnpbios_identify(driver_t *driver, device_t parent)
|
||||
return;
|
||||
|
||||
/* ACPI already active */
|
||||
if (devclass_get_softc(devclass_find("acpi"), 0) != NULL)
|
||||
if (devclass_find("acpi") != 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_get_softc(devclass_find("acpi"), 0) != NULL)
|
||||
if (devclass_find("acpi") != NULL)
|
||||
return;
|
||||
|
||||
/* get count of PnP devices */
|
||||
|
Loading…
Reference in New Issue
Block a user