diff options
author | njl <njl@FreeBSD.org> | 2004-06-29 19:02:27 +0000 |
---|---|---|
committer | njl <njl@FreeBSD.org> | 2004-06-29 19:02:27 +0000 |
commit | 72ad681e8442865d104086e9a6961818cc435085 (patch) | |
tree | 6f1a0ff9b933c25a9eb2bf967f62e708efe64c5f /sys/dev/acpica/acpi_resource.c | |
parent | 2a43f50bb099f7154fa37e95153f1432d00c8667 (diff) | |
download | FreeBSD-src-72ad681e8442865d104086e9a6961818cc435085.zip FreeBSD-src-72ad681e8442865d104086e9a6961818cc435085.tar.gz |
Use the acpi_id_probe() method instead of acpi_MatchHid(), which is now
static.
Diffstat (limited to 'sys/dev/acpica/acpi_resource.c')
-rw-r--r-- | sys/dev/acpica/acpi_resource.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/sys/dev/acpica/acpi_resource.c b/sys/dev/acpica/acpi_resource.c index 369e183..60b8bcd 100644 --- a/sys/dev/acpica/acpi_resource.c +++ b/sys/dev/acpica/acpi_resource.c @@ -655,11 +655,10 @@ MODULE_DEPEND(acpi_sysresource, acpi, 1, 1, 1); static int acpi_sysres_probe(device_t dev) { - ACPI_HANDLE h; + static char *sysres_ids[] = { "PNP0C01", "PNP0C02", NULL }; - h = acpi_get_handle(dev); if (acpi_disabled("sysresource") || - (!acpi_MatchHid(h, "PNP0C01") && !acpi_MatchHid(h, "PNP0C02"))) + ACPI_ID_PROBE(device_get_parent(dev), dev, sysres_ids) == NULL) return (ENXIO); device_set_desc(dev, "System Resource"); |