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
This commit is contained in:
kiyohara 2009-12-19 07:08:55 +00:00
parent 1edc55859d
commit 7b37c23343
1 changed files with 5 additions and 1 deletions

View File

@ -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");
}