Module Name:    src
Committed By:   uwe
Date:           Sun Apr  5 00:34:42 UTC 2009

Modified Files:
        src/sys/dev/hpc: btnmgr.c

Log Message:
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.


To generate a diff of this commit:
cvs rdiff -u -r1.22 -r1.23 src/sys/dev/hpc/btnmgr.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/btnmgr.c
diff -u src/sys/dev/hpc/btnmgr.c:1.22 src/sys/dev/hpc/btnmgr.c:1.23
--- src/sys/dev/hpc/btnmgr.c:1.22	Fri Oct 19 11:59:42 2007
+++ src/sys/dev/hpc/btnmgr.c	Sun Apr  5 00:34:42 2009
@@ -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 @@
 	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

Reply via email to