Module Name:    src
Committed By:   uwe
Date:           Sun Apr  5 02:18:59 UTC 2009

Modified Files:
        src/sys/arch/hpcsh/dev: j6x0pwr.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.14 -r1.15 src/sys/arch/hpcsh/dev/j6x0pwr.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/j6x0pwr.c
diff -u src/sys/arch/hpcsh/dev/j6x0pwr.c:1.14 src/sys/arch/hpcsh/dev/j6x0pwr.c:1.15
--- src/sys/arch/hpcsh/dev/j6x0pwr.c:1.14	Thu Mar 27 03:34:14 2008
+++ src/sys/arch/hpcsh/dev/j6x0pwr.c	Sun Apr  5 02:18:59 2009
@@ -1,4 +1,4 @@
-/*	$NetBSD: j6x0pwr.c,v 1.14 2008/03/27 03:34:14 uwe Exp $ */
+/*	$NetBSD: j6x0pwr.c,v 1.15 2009/04/05 02:18:59 uwe Exp $ */
 
 /*
  * Copyright (c) 2003, 2006 Valeriy E. Ushakov
@@ -28,7 +28,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: j6x0pwr.c,v 1.14 2008/03/27 03:34:14 uwe Exp $");
+__KERNEL_RCSID(0, "$NetBSD: j6x0pwr.c,v 1.15 2009/04/05 02:18:59 uwe Exp $");
 
 #include <sys/param.h>
 #include <sys/kernel.h>
@@ -187,6 +187,9 @@
 	    j6x0pwr_intr, sc);
 
 	_reg_write_1(SH7709_PKDR, 0);	/* Green LED on */
+
+	if (!pmf_device_register(self, NULL, NULL))
+		aprint_error_dev(self, "unable to establish power handler\n");
 }
 
 

Reply via email to