Source-Changes-HG archive

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

[src/trunk]: src/sys/dev/acpi Correct arguments to AcpiClearGpe().



details:   https://anonhg.NetBSD.org/src/rev/539a3ff59157
branches:  trunk
changeset: 554713:539a3ff59157
user:      mycroft <mycroft%NetBSD.org@localhost>
date:      Sat Nov 01 08:14:39 2003 +0000

description:
Correct arguments to AcpiClearGpe().

diffstat:

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

diffs (38 lines):

diff -r 15dc8db7029e -r 539a3ff59157 sys/dev/acpi/acpi_ec.c
--- a/sys/dev/acpi/acpi_ec.c    Sat Nov 01 08:03:24 2003 +0000
+++ b/sys/dev/acpi/acpi_ec.c    Sat Nov 01 08:14:39 2003 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: acpi_ec.c,v 1.12 2003/11/01 01:38:25 mycroft Exp $     */
+/*     $NetBSD: acpi_ec.c,v 1.13 2003/11/01 08:14:39 mycroft Exp $     */
 
 /*
  * Copyright 2001 Wasabi Systems, Inc.
@@ -172,7 +172,7 @@
  *****************************************************************************/
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: acpi_ec.c,v 1.12 2003/11/01 01:38:25 mycroft Exp $");
+__KERNEL_RCSID(0, "$NetBSD: acpi_ec.c,v 1.13 2003/11/01 08:14:39 mycroft Exp $");
 
 #include <sys/param.h>
 #include <sys/systm.h>
@@ -449,8 +449,7 @@
        }
 
        /* I know I request Level trigger cleanup */
-       if (AcpiClearGpe(sc->sc_node->ad_handle, sc->sc_gpebit, ACPI_NOT_ISR)
-           != AE_OK)
+       if (AcpiClearGpe(NULL, sc->sc_gpebit, ACPI_NOT_ISR) != AE_OK)
                printf("%s: AcpiClearGpe failed\n", sc->sc_dev.dv_xname);
 
        return_VOID;
@@ -700,8 +699,7 @@
                sc->sc_flags &= ~EC_F_PENDQUERY;
        }
 
-       if (AcpiClearGpe(sc->sc_node->ad_handle, sc->sc_gpebit, ACPI_NOT_ISR)
-           != AE_OK)
+       if (AcpiClearGpe(NULL, sc->sc_gpebit, ACPI_NOT_ISR) != AE_OK)
                printf("%s: EcRequest: unable to clear EC GPE\n",
                    sc->sc_dev.dv_xname);
 



Home | Main Index | Thread Index | Old Index