Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/dev/acpi Set sc->sc_glk, if acpi_eval_integer() evaluate ...



details:   https://anonhg.NetBSD.org/src/rev/6a53147a8362
branches:  trunk
changeset: 559818:6a53147a8362
user:      kanaoka <kanaoka%NetBSD.org@localhost>
date:      Wed Mar 24 14:47:19 2004 +0000

description:
Set sc->sc_glk,if acpi_eval_integer() evaluate _GLK in acpiec_attach.

diffstat:

 sys/dev/acpi/acpi_ec.c |  8 ++++----
 1 files changed, 4 insertions(+), 4 deletions(-)

diffs (29 lines):

diff -r 4cf46ecb7acc -r 6a53147a8362 sys/dev/acpi/acpi_ec.c
--- a/sys/dev/acpi/acpi_ec.c    Wed Mar 24 13:02:23 2004 +0000
+++ b/sys/dev/acpi/acpi_ec.c    Wed Mar 24 14:47:19 2004 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: acpi_ec.c,v 1.21 2004/03/24 11:32:09 kanaoka Exp $     */
+/*     $NetBSD: acpi_ec.c,v 1.22 2004/03/24 14:47:19 kanaoka Exp $     */
 
 /*
  * Copyright 2001 Wasabi Systems, Inc.
@@ -172,7 +172,7 @@
  *****************************************************************************/
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: acpi_ec.c,v 1.21 2004/03/24 11:32:09 kanaoka Exp $");
+__KERNEL_RCSID(0, "$NetBSD: acpi_ec.c,v 1.22 2004/03/24 14:47:19 kanaoka Exp $");
 
 #include <sys/param.h>
 #include <sys/systm.h>
@@ -470,8 +470,8 @@
                        printf("%s: unable to evaluate _GLK: %s\n",
                            sc->sc_dev.dv_xname, AcpiFormatException(rv));
                sc->sc_glk = 0;
-       }
-       sc->sc_glk = v;
+       } else
+               sc->sc_glk = v;
        /*
         * Install a handler for this EC's GPE bit.  Note that EC SCIs are 
         * treated as both edge- and level-triggered interrupts; in other words



Home | Main Index | Thread Index | Old Index