Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/arch/hpcsh/dev Register null hooks with pmf(9) for now, ...
details: https://anonhg.NetBSD.org/src/rev/e8b2c3377512
branches: trunk
changeset: 750154:e8b2c3377512
user: kiyohara <kiyohara%NetBSD.org@localhost>
date: Sat Dec 19 07:08:55 2009 +0000
description:
Register null hooks with pmf(9) for now, which is no worse than befor
and allows us to test other things. Power management is still done
via CONFIG_HOOK_POWERCONTROL_LCD.
Based on rev 1.14 of src/sys/arch/hpcsh/dev/j6x0lcd.c
diffstat:
sys/arch/hpcsh/dev/psh3lcd.c | 6 +++++-
1 files changed, 5 insertions(+), 1 deletions(-)
diffs (20 lines):
diff -r 4f4442f891d1 -r e8b2c3377512 sys/arch/hpcsh/dev/psh3lcd.c
--- a/sys/arch/hpcsh/dev/psh3lcd.c Sat Dec 19 07:08:23 2009 +0000
+++ b/sys/arch/hpcsh/dev/psh3lcd.c Sat Dec 19 07:08:55 2009 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: psh3lcd.c,v 1.4 2008/03/31 15:49:29 kiyohara Exp $ */
+/* $NetBSD: psh3lcd.c,v 1.5 2009/12/19 07:08:55 kiyohara Exp $ */
/*
* Copyright (c) 2005 KIYOHARA Takashi
* All rights reserved.
@@ -287,6 +287,10 @@
/* LCD on/off hook */
config_hook(CONFIG_HOOK_POWERCONTROL,
CONFIG_HOOK_POWERCONTROL_LCD, CONFIG_HOOK_SHARE, psh3lcd_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");
}
Home |
Main Index |
Thread Index |
Old Index