summaryrefslogtreecommitdiffstats
path: root/sys/dev/acpica/Osd
diff options
context:
space:
mode:
authormsmith <msmith@FreeBSD.org>2002-01-08 06:46:01 +0000
committermsmith <msmith@FreeBSD.org>2002-01-08 06:46:01 +0000
commita855b09ad999235f62fe29261a98fd8b6773a73d (patch)
treecfb201ced8b62b19c835d3f8f3b03333ffb1fc87 /sys/dev/acpica/Osd
parentc8fe4def6b256672a7ffe18ad5af78461a05c275 (diff)
downloadFreeBSD-src-a855b09ad999235f62fe29261a98fd8b6773a73d.zip
FreeBSD-src-a855b09ad999235f62fe29261a98fd8b6773a73d.tar.gz
Staticise devclasses and some unnecessarily global variables.
Diffstat (limited to 'sys/dev/acpica/Osd')
-rw-r--r--sys/dev/acpica/Osd/OsdInterrupt.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/dev/acpica/Osd/OsdInterrupt.c b/sys/dev/acpica/Osd/OsdInterrupt.c
index bccf946..ac62132 100644
--- a/sys/dev/acpica/Osd/OsdInterrupt.c
+++ b/sys/dev/acpica/Osd/OsdInterrupt.c
@@ -57,7 +57,7 @@ AcpiOsInstallInterruptHandler(UINT32 InterruptNumber, OSD_HANDLER ServiceRoutine
FUNCTION_TRACE(__func__);
- if ((sc = devclass_get_softc(acpi_devclass, 0)) == NULL)
+ if ((sc = devclass_get_softc(devclass_find("acpi"), 0)) == NULL)
panic("can't find ACPI device to register interrupt");
if (sc->acpi_dev == NULL)
panic("acpi softc has invalid device");
@@ -108,7 +108,7 @@ AcpiOsRemoveInterruptHandler (UINT32 InterruptNumber, OSD_HANDLER ServiceRoutine
if (ServiceRoutine == NULL)
return_ACPI_STATUS(AE_BAD_PARAMETER);
- if ((sc = devclass_get_softc(acpi_devclass, 0)) == NULL)
+ if ((sc = devclass_get_softc(find_devclass("acpi"), 0)) == NULL)
panic("can't find ACPI device to deregister interrupt");
if (sc->acpi_irq == NULL)
OpenPOWER on IntegriCloud