acpi_isab: Check the unit in probe instead of using the devclass.

This is an alternate way to only attach to isab0 for the reasons
described in commit 852989bdbf.

Reviewed by:	imp
Differential Revision:	https://reviews.freebsd.org/D34991
This commit is contained in:
John Baldwin
2022-04-21 10:29:13 -07:00
parent 33883cdce4
commit 9066471175
+1 -2
View File
@@ -93,8 +93,7 @@ acpi_isab_probe(device_t dev)
static char *isa_ids[] = { "PNP0A05", "PNP0A06", NULL };
int rv;
if (acpi_disabled("isab") ||
devclass_get_device(isab_devclass, 0) != dev)
if (acpi_disabled("isab") || device_get_unit(dev) != 0)
return (ENXIO);
rv = ACPI_ID_PROBE(device_get_parent(dev), dev, isa_ids, NULL);
if (rv <= 0)