diff options
author | Mark Kettenis <kettenis@cvs.openbsd.org> | 2006-11-29 11:16:26 +0000 |
---|---|---|
committer | Mark Kettenis <kettenis@cvs.openbsd.org> | 2006-11-29 11:16:26 +0000 |
commit | 0eb525a2ac1464065fbeae72d839f9a279cdd90c (patch) | |
tree | ff1c511b19919b2fd07c3c6847e8bd58640f5750 /sys/arch | |
parent | e8856c076d6f114f0ebcc444e2257e5b198b9c03 (diff) |
Only establish acpi interrupt if ACPI_ENABLE.
Diffstat (limited to 'sys/arch')
-rw-r--r-- | sys/arch/i386/i386/acpi_machdep.c | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/sys/arch/i386/i386/acpi_machdep.c b/sys/arch/i386/i386/acpi_machdep.c index 2c984633267..b47aed995f9 100644 --- a/sys/arch/i386/i386/acpi_machdep.c +++ b/sys/arch/i386/i386/acpi_machdep.c @@ -1,4 +1,4 @@ -/* $OpenBSD: acpi_machdep.c,v 1.4 2006/04/28 13:00:51 dim Exp $ */ +/* $OpenBSD: acpi_machdep.c,v 1.5 2006/11/29 11:16:25 kettenis Exp $ */ /* * Copyright (c) 2005 Thorsten Lockert <tholo@sigmasoft.com> * @@ -170,6 +170,8 @@ havebase: void acpi_attach_machdep(struct acpi_softc *sc) { - sc->sc_interrupt = isa_intr_establish(NULL, sc->sc_fadt->sci_int, IST_LEVEL, - IPL_TTY, acpi_interrupt, sc, "acpi"); +#ifdef ACPI_ENABLE + sc->sc_interrupt = isa_intr_establish(NULL, sc->sc_fadt->sci_int, + IST_LEVEL, IPL_TTY, acpi_interrupt, sc, "acpi"); +#endif } |