Module Name: src Committed By: jruoho Date: Sat Jan 9 15:34:59 UTC 2010
Modified Files: src/sys/dev/acpi: wmi_acpi.c Log Message: Fix the casts in the event handler. To generate a diff of this commit: cvs rdiff -u -r1.8 -r1.9 src/sys/dev/acpi/wmi_acpi.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
Modified files: Index: src/sys/dev/acpi/wmi_acpi.c diff -u src/sys/dev/acpi/wmi_acpi.c:1.8 src/sys/dev/acpi/wmi_acpi.c:1.9 --- src/sys/dev/acpi/wmi_acpi.c:1.8 Fri Jan 8 20:40:41 2010 +++ src/sys/dev/acpi/wmi_acpi.c Sat Jan 9 15:34:59 2010 @@ -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 <jruoho...@iki.fi> @@ -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;