diff options
author | peter <peter@FreeBSD.org> | 2004-08-16 23:10:18 +0000 |
---|---|---|
committer | peter <peter@FreeBSD.org> | 2004-08-16 23:10:18 +0000 |
commit | 846b1ee92d83b75215ce306bc4c6a845ce2e48b4 (patch) | |
tree | 670380e8cde2544c76bbd255f33ae10b25f33bde /sys/amd64/acpica | |
parent | 2bd0b02c86d4103a762d65535a44a0d0e62d40aa (diff) | |
download | FreeBSD-src-846b1ee92d83b75215ce306bc4c6a845ce2e48b4.zip FreeBSD-src-846b1ee92d83b75215ce306bc4c6a845ce2e48b4.tar.gz |
Sync with i386 - get the softc via the devclass rather than caching the dev
Diffstat (limited to 'sys/amd64/acpica')
-rw-r--r-- | sys/amd64/acpica/acpi_machdep.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/sys/amd64/acpica/acpi_machdep.c b/sys/amd64/acpica/acpi_machdep.c index a418b71..352842f 100644 --- a/sys/amd64/acpica/acpi_machdep.c +++ b/sys/amd64/acpica/acpi_machdep.c @@ -40,8 +40,7 @@ acpi_machdep_init(device_t dev) { struct acpi_softc *sc; - sc = device_get_softc(dev); - + sc = devclass_get_softc(devclass_find("acpi"), 0); acpi_install_wakeup_handler(sc); if (intr_model != ACPI_INTR_PIC) |