Module Name: src
Committed By: uwe
Date: Sun Apr 5 02:04:40 UTC 2009
Modified Files:
src/sys/dev/hpc: hpcapm.c
Log Message:
Register with pmf(9), tell it we don't need anything.
To generate a diff of this commit:
cvs rdiff -u -r1.15 -r1.16 src/sys/dev/hpc/hpcapm.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/hpc/hpcapm.c
diff -u src/sys/dev/hpc/hpcapm.c:1.15 src/sys/dev/hpc/hpcapm.c:1.16
--- src/sys/dev/hpc/hpcapm.c:1.15 Fri Apr 3 04:13:17 2009
+++ src/sys/dev/hpc/hpcapm.c Sun Apr 5 02:04:40 2009
@@ -1,4 +1,4 @@
-/* $NetBSD: hpcapm.c,v 1.15 2009/04/03 04:13:17 uwe Exp $ */
+/* $NetBSD: hpcapm.c,v 1.16 2009/04/05 02:04:40 uwe Exp $ */
/*
* Copyright (c) 2000 Takemura Shin
@@ -29,7 +29,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: hpcapm.c,v 1.15 2009/04/03 04:13:17 uwe Exp $");
+__KERNEL_RCSID(0, "$NetBSD: hpcapm.c,v 1.16 2009/04/05 02:04:40 uwe Exp $");
#ifdef _KERNEL_OPT
#include "opt_hpcapm.h"
@@ -153,6 +153,9 @@
aaa.apm_detail = 0x0102;
sc->sc_apmdev = config_found_ia(self, "apmdevif", &aaa, apmprint);
+
+ if (!pmf_device_register(self, NULL, NULL))
+ aprint_error_dev(self, "unable to establish power handler\n");
}
static int