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 incorrect notify handler type (ACPI_SYSTEM_...



details:   https://anonhg.NetBSD.org/src/rev/42d765b43963
branches:  trunk
changeset: 751347:42d765b43963
user:      jruoho <jruoho%NetBSD.org@localhost>
date:      Mon Feb 01 09:45:04 2010 +0000

description:
Fix incorrect notify handler type (ACPI_SYSTEM_NOTIFY -> ACPI_DEVICE_NOTIFY).

diffstat:

 sys/dev/acpi/acpi_tz.c |  12 +++++-------
 1 files changed, 5 insertions(+), 7 deletions(-)

diffs (34 lines):

diff -r c31d68069d0b -r 42d765b43963 sys/dev/acpi/acpi_tz.c
--- a/sys/dev/acpi/acpi_tz.c    Mon Feb 01 09:18:41 2010 +0000
+++ b/sys/dev/acpi/acpi_tz.c    Mon Feb 01 09:45:04 2010 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: acpi_tz.c,v 1.56 2010/01/18 18:36:50 jruoho Exp $ */
+/* $NetBSD: acpi_tz.c,v 1.57 2010/02/01 09:45:04 jruoho Exp $ */
 
 /*
  * Copyright (c) 2003 Jared D. McNeill <jmcneill%invisible.ca@localhost>
@@ -30,7 +30,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: acpi_tz.c,v 1.56 2010/01/18 18:36:50 jruoho Exp $");
+__KERNEL_RCSID(0, "$NetBSD: acpi_tz.c,v 1.57 2010/02/01 09:45:04 jruoho Exp $");
 
 #include <sys/param.h>
 #include <sys/systm.h>
@@ -215,12 +215,10 @@
        acpitz_get_status(self);
 
        rv = AcpiInstallNotifyHandler(sc->sc_devnode->ad_handle,
-           ACPI_SYSTEM_NOTIFY, acpitz_notify_handler, self);
-       if (ACPI_FAILURE(rv)) {
-               aprint_error(": unable to install SYSTEM NOTIFY handler: %s\n",
-                   AcpiFormatException(rv));
+           ACPI_DEVICE_NOTIFY, acpitz_notify_handler, self);
+
+       if (ACPI_FAILURE(rv))
                return;
-       }
 
        callout_init(&sc->sc_callout, CALLOUT_MPSAFE);
        callout_setfunc(&sc->sc_callout, acpitz_tick, self);



Home | Main Index | Thread Index | Old Index