Module Name:    src
Committed By:   uwe
Date:           Sun Apr  5 02:23:00 UTC 2009

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

Log Message:
Register null hooks with pmf(9) for now, which is no worse than before
and allows us to test other things.  Power management is still done
via CONFIG_HOOK_POWERCONTROL_LCD.


To generate a diff of this commit:
cvs rdiff -u -r1.13 -r1.14 src/sys/arch/hpcsh/dev/j6x0lcd.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/j6x0lcd.c
diff -u src/sys/arch/hpcsh/dev/j6x0lcd.c:1.13 src/sys/arch/hpcsh/dev/j6x0lcd.c:1.14
--- src/sys/arch/hpcsh/dev/j6x0lcd.c:1.13	Fri Mar 28 01:19:12 2008
+++ src/sys/arch/hpcsh/dev/j6x0lcd.c	Sun Apr  5 02:23:00 2009
@@ -1,4 +1,4 @@
-/*	$NetBSD: j6x0lcd.c,v 1.13 2008/03/28 01:19:12 uwe Exp $ */
+/*	$NetBSD: j6x0lcd.c,v 1.14 2009/04/05 02:23:00 uwe Exp $ */
 
 /*
  * Copyright (c) 2004, 2005 Valeriy E. Ushakov
@@ -28,7 +28,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: j6x0lcd.c,v 1.13 2008/03/28 01:19:12 uwe Exp $");
+__KERNEL_RCSID(0, "$NetBSD: j6x0lcd.c,v 1.14 2009/04/05 02:23:00 uwe Exp $");
 
 #include <sys/param.h>
 #include <sys/kernel.h>
@@ -277,6 +277,10 @@
 		    CONFIG_HOOK_POWERCONTROL_LCD,
 		    CONFIG_HOOK_SHARE,
 		    j6x0lcd_power, sc);
+
+	/* XXX: TODO: don't rely on CONFIG_HOOK_POWERCONTROL_LCD */
+	if (!pmf_device_register(self, NULL, NULL))
+		aprint_error_dev(self, "unable to establish power handler\n");
 }
 
 

Reply via email to