Source-Changes-HG archive

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

[src/trunk]: src/sys/dev/acpi Fix the casts in the event handler.



details:   https://anonhg.NetBSD.org/src/rev/1130b7afa4bb
branches:  trunk
changeset: 750650:1130b7afa4bb
user:      jruoho <jruoho%NetBSD.org@localhost>
date:      Sat Jan 09 15:34:59 2010 +0000

description:
Fix the casts in the event handler.

diffstat:

 sys/dev/acpi/wmi_acpi.c |  7 +++----
 1 files changed, 3 insertions(+), 4 deletions(-)

diffs (28 lines):

diff -r 4ed8d8f12cad -r 1130b7afa4bb sys/dev/acpi/wmi_acpi.c
--- a/sys/dev/acpi/wmi_acpi.c   Sat Jan 09 14:15:48 2010 +0000
+++ b/sys/dev/acpi/wmi_acpi.c   Sat Jan 09 15:34:59 2010 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: wmi_acpi.c,v 1.8 2010/01/08 20:40:41 dyoung Exp $      */
+/*     $NetBSD: wmi_acpi.c,v 1.9 2010/01/09 15:34:59 jruoho Exp $      */
 
 /*-
  * Copyright (c) 2009, 2010 Jukka Ruohonen <jruohonen%iki.fi@localhost>
@@ -27,7 +27,7 @@
  * SUCH DAMAGE.
  */
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: wmi_acpi.c,v 1.8 2010/01/08 20:40:41 dyoung Exp $");
+__KERNEL_RCSID(0, "$NetBSD: wmi_acpi.c,v 1.9 2010/01/09 15:34:59 jruoho Exp $");
 
 #include <sys/param.h>
 #include <sys/device.h>
@@ -505,8 +505,7 @@
 static void
 acpi_wmi_event_handler(ACPI_HANDLE hdl, uint32_t evt, void *aux)
 {
-       device_t self = aux;
-       struct acpi_wmi_softc *sc = device_private(self);
+       struct acpi_wmi_softc *sc = aux;
 
        if (sc->sc_handler == NULL)
                return;



Home | Main Index | Thread Index | Old Index