Module Name:    src
Committed By:   kiyohara
Date:           Sat Dec 19 07:09:28 UTC 2009

Modified Files:
        src/sys/arch/hpcsh/dev: psh3pwr.c

Log Message:
http://mail-index.netbsd.org/source-changes/2009/04/05/msg219236.html


To generate a diff of this commit:
cvs rdiff -u -r1.3 -r1.4 src/sys/arch/hpcsh/dev/psh3pwr.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/dev/psh3pwr.c
diff -u src/sys/arch/hpcsh/dev/psh3pwr.c:1.3 src/sys/arch/hpcsh/dev/psh3pwr.c:1.4
--- src/sys/arch/hpcsh/dev/psh3pwr.c:1.3	Mon Mar 31 15:49:29 2008
+++ src/sys/arch/hpcsh/dev/psh3pwr.c	Sat Dec 19 07:09:28 2009
@@ -1,4 +1,4 @@
-/*	$NetBSD: psh3pwr.c,v 1.3 2008/03/31 15:49:29 kiyohara Exp $	*/
+/*	$NetBSD: psh3pwr.c,v 1.4 2009/12/19 07:09:28 kiyohara Exp $	*/
 /*
  * Copyright (c) 2005, 2007 KIYOHARA Takashi
  * All rights reserved.
@@ -27,7 +27,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: psh3pwr.c,v 1.3 2008/03/31 15:49:29 kiyohara Exp $");
+__KERNEL_RCSID(0, "$NetBSD: psh3pwr.c,v 1.4 2009/12/19 07:09:28 kiyohara Exp $");
 
 #include <sys/param.h>
 #include <sys/kernel.h>
@@ -157,6 +157,9 @@
 	/* XXXX: WindowsCE sets this bit. */
 	aprint_normal_dev(self, "plug status: %s\n",
 	    psh3pwr_ac_is_off() ? "out" : "in");
+
+ 	if (!pmf_device_register(self, NULL, NULL))
+ 		aprint_error_dev(self, "unable to establish power handler\n");
 }
 
 

Reply via email to