From 7b37c233431e53c77297e130cf7623d269133759 Mon Sep 17 00:00:00 2001 From: kiyohara Date: Sat, 19 Dec 2009 07:08:55 +0000 Subject: [PATCH] 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 --- sys/arch/hpcsh/dev/psh3lcd.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/sys/arch/hpcsh/dev/psh3lcd.c b/sys/arch/hpcsh/dev/psh3lcd.c index e766bba85205..8f8e79efb688 100644 --- a/sys/arch/hpcsh/dev/psh3lcd.c +++ b/sys/arch/hpcsh/dev/psh3lcd.c @@ -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 @@ psh3lcd_attach(device_t parent __unused, device_t self, void *aux __unused) /* 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"); }