Module Name: src
Committed By: uwe
Date: Sun Apr 5 02:17:18 UTC 2009
Modified Files:
src/sys/dev/hpc: hpckbd.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.25 -r1.26 src/sys/dev/hpc/hpckbd.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/hpckbd.c
diff -u src/sys/dev/hpc/hpckbd.c:1.25 src/sys/dev/hpc/hpckbd.c:1.26
--- src/sys/dev/hpc/hpckbd.c:1.25 Mon Apr 28 20:23:48 2008
+++ src/sys/dev/hpc/hpckbd.c Sun Apr 5 02:17:18 2009
@@ -1,4 +1,4 @@
-/* $NetBSD: hpckbd.c,v 1.25 2008/04/28 20:23:48 martin Exp $ */
+/* $NetBSD: hpckbd.c,v 1.26 2009/04/05 02:17:18 uwe Exp $ */
/*-
* Copyright (c) 1999-2001 The NetBSD Foundation, Inc.
@@ -30,7 +30,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: hpckbd.c,v 1.25 2008/04/28 20:23:48 martin Exp $");
+__KERNEL_RCSID(0, "$NetBSD: hpckbd.c,v 1.26 2009/04/05 02:17:18 uwe Exp $");
#include <sys/param.h>
#include <sys/systm.h>
@@ -182,6 +182,9 @@
wa.accessops = &hpckbd_accessops;
wa.accesscookie = sc->sc_core;
sc->sc_core->hc_wskbddev = config_found(self, &wa, wskbddevprint);
+
+ if (!pmf_device_register(self, NULL, NULL))
+ aprint_error_dev(self, "unable to establish power handler\n");
}
int