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:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user