Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/dev/acpi register aibs(4) with pmf(9) to quiet the latte...
details: https://anonhg.NetBSD.org/src/rev/a8ef4d431dd2
branches: trunk
changeset: 752855:a8ef4d431dd2
user: cnst <cnst%NetBSD.org@localhost>
date: Mon Mar 08 11:54:35 2010 +0000
description:
register aibs(4) with pmf(9) to quiet the latter down; reported Dieter Roelants
diffstat:
sys/dev/acpi/atk0110.c | 8 ++++++--
1 files changed, 6 insertions(+), 2 deletions(-)
diffs (36 lines):
diff -r cd7c45a1c762 -r a8ef4d431dd2 sys/dev/acpi/atk0110.c
--- a/sys/dev/acpi/atk0110.c Mon Mar 08 11:45:45 2010 +0000
+++ b/sys/dev/acpi/atk0110.c Mon Mar 08 11:54:35 2010 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: atk0110.c,v 1.9 2010/03/05 14:00:17 jruoho Exp $ */
+/* $NetBSD: atk0110.c,v 1.10 2010/03/08 11:54:35 cnst Exp $ */
/* $OpenBSD: atk0110.c,v 1.1 2009/07/23 01:38:16 cnst Exp $ */
/*
@@ -18,7 +18,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: atk0110.c,v 1.9 2010/03/05 14:00:17 jruoho Exp $");
+__KERNEL_RCSID(0, "$NetBSD: atk0110.c,v 1.10 2010/03/08 11:54:35 cnst Exp $");
#include <sys/param.h>
#include <sys/malloc.h>
@@ -129,6 +129,9 @@
free(sc->sc_asens_fan, M_DEVBUF);
return;
}
+
+ if (!pmf_device_register(self, NULL, NULL))
+ aprint_error_dev(self, "could not establish power handler\n");
}
static void
@@ -264,6 +267,7 @@
{
struct aibs_softc *sc = device_private(self);
+ pmf_device_deregister(self);
sysmon_envsys_unregister(sc->sc_sme);
if (sc->sc_asens_volt != NULL)
free(sc->sc_asens_volt, M_DEVBUF);
Home |
Main Index |
Thread Index |
Old Index