Module Name: src Committed By: cnst Date: Mon Mar 8 11:54:35 UTC 2010
Modified Files: src/sys/dev/acpi: atk0110.c Log Message: register aibs(4) with pmf(9) to quiet the latter down; reported Dieter Roelants To generate a diff of this commit: cvs rdiff -u -r1.9 -r1.10 src/sys/dev/acpi/atk0110.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/atk0110.c diff -u src/sys/dev/acpi/atk0110.c:1.9 src/sys/dev/acpi/atk0110.c:1.10 --- src/sys/dev/acpi/atk0110.c:1.9 Fri Mar 5 14:00:17 2010 +++ src/sys/dev/acpi/atk0110.c Mon Mar 8 11:54:35 2010 @@ -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);