From 0eb525a2ac1464065fbeae72d839f9a279cdd90c Mon Sep 17 00:00:00 2001 From: Mark Kettenis Date: Wed, 29 Nov 2006 11:16:26 +0000 Subject: Only establish acpi interrupt if ACPI_ENABLE. --- sys/arch/i386/i386/acpi_machdep.c | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'sys/arch/i386') 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 * @@ -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 } -- cgit v1.2.3