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.
This commit is contained in:
parent
620a6f25ea
commit
c7b2923b5e
@ -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 @@ j6x0lcd_attach(device_t parent, device_t self, void *aux)
|
||||
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");
|
||||
}
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user