aboutsummaryrefslogtreecommitdiff
path: root/sys
diff options
context:
space:
mode:
authorPeter Wemm <peter@FreeBSD.org>2004-08-16 23:10:18 +0000
committerPeter Wemm <peter@FreeBSD.org>2004-08-16 23:10:18 +0000
commite88022749d19a5da7a390603116d47749912707a (patch)
tree670380e8cde2544c76bbd255f33ae10b25f33bde /sys
parentdeefc3c4f59b7facf347013419f93469881ac591 (diff)
Notes
Diffstat (limited to 'sys')
-rw-r--r--sys/amd64/acpica/acpi_machdep.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/sys/amd64/acpica/acpi_machdep.c b/sys/amd64/acpica/acpi_machdep.c
index a418b7195045..352842f99100 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)