summaryrefslogtreecommitdiff
path: root/sys/dev/hpc
diff options
context:
space:
mode:
authoruwe <uwe@NetBSD.org>2009-04-05 00:34:42 +0000
committeruwe <uwe@NetBSD.org>2009-04-05 00:34:42 +0000
commitfe0f5148ae2210de07fac7cb0c5d178a110cc068 (patch)
tree7249463fb4edf188ffaff30aa5a1f9986b67adca /sys/dev/hpc
parent375ebd8c0b1bdca7b48daba7d712a12351903198 (diff)
Register with pmf(9), tell it we don't need anything.
btnmgr(4) is just a hub for other devices to plug into with config_hook(9), there is no real hardware to manage.
Diffstat (limited to 'sys/dev/hpc')
-rw-r--r--sys/dev/hpc/btnmgr.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/sys/dev/hpc/btnmgr.c b/sys/dev/hpc/btnmgr.c
index d948f6c689c..bdf3e7ee9ac 100644
--- a/sys/dev/hpc/btnmgr.c
+++ b/sys/dev/hpc/btnmgr.c
@@ -1,4 +1,4 @@
-/* $NetBSD: btnmgr.c,v 1.22 2007/10/19 11:59:42 ad Exp $ */
+/* $NetBSD: btnmgr.c,v 1.23 2009/04/05 00:34:42 uwe Exp $ */
/*-
* Copyright (c) 1999
@@ -35,7 +35,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: btnmgr.c,v 1.22 2007/10/19 11:59:42 ad Exp $");
+__KERNEL_RCSID(0, "$NetBSD: btnmgr.c,v 1.23 2009/04/05 00:34:42 uwe Exp $");
#ifdef _KERNEL_OPT
#include "opt_btnmgr.h"
@@ -211,6 +211,9 @@ btnmgrattach(struct device *parent,
wa.accesscookie = sc;
sc->sc_wskbddev = config_found(self, &wa, wskbddevprint);
+
+ if (!pmf_device_register(self, NULL, NULL))
+ aprint_error_dev(self, "unable to establish power handler\n");
}
static int