Module Name:    src
Committed By:   uwe
Date:           Sat Apr  4 23:45:24 UTC 2009

Modified Files:
        src/sys/arch/hpcsh/hpcsh: mainbus.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.19 -r1.20 src/sys/arch/hpcsh/hpcsh/mainbus.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/arch/hpcsh/hpcsh/mainbus.c
diff -u src/sys/arch/hpcsh/hpcsh/mainbus.c:1.19 src/sys/arch/hpcsh/hpcsh/mainbus.c:1.20
--- src/sys/arch/hpcsh/hpcsh/mainbus.c:1.19	Mon Apr 28 20:23:22 2008
+++ src/sys/arch/hpcsh/hpcsh/mainbus.c	Sat Apr  4 23:45:24 2009
@@ -1,4 +1,4 @@
-/*	$NetBSD: mainbus.c,v 1.19 2008/04/28 20:23:22 martin Exp $	*/
+/*	$NetBSD: mainbus.c,v 1.20 2009/04/04 23:45:24 uwe Exp $	*/
 
 /*-
  * Copyright (c) 2001, 2004 The NetBSD Foundation, Inc.
@@ -27,7 +27,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: mainbus.c,v 1.19 2008/04/28 20:23:22 martin Exp $");
+__KERNEL_RCSID(0, "$NetBSD: mainbus.c,v 1.20 2009/04/04 23:45:24 uwe Exp $");
 
 #include <sys/param.h>
 #include <sys/systm.h>
@@ -70,6 +70,9 @@
 
 	/* APM */
 	config_found_ia(self, "hpcapmif", NULL, mainbus_print);
+
+	if (!pmf_device_register(self, NULL, NULL))
+		aprint_error_dev(self, "unable to establish power handler\n");
 }
 
 static int

Reply via email to