diff options
| author | uwe <uwe@NetBSD.org> | 2006-08-22 01:55:00 +0000 |
|---|---|---|
| committer | uwe <uwe@NetBSD.org> | 2006-08-22 01:55:00 +0000 |
| commit | b320dcd1700b64c9f5126dc4eccbd744771e3e10 (patch) | |
| tree | 1611df6e29d87b4c45292e04bc661ad8b259461a /sys/dev | |
| parent | 5223c4995cfb8164cda0f8ae54f90eb8ed083f52 (diff) | |
Fix a pasto: save CONFIG_HOOK_PMEVENT_AC hook in the correct variable.
From Adam Wysocki on port-hpcsh@.
Diffstat (limited to 'sys/dev')
| -rw-r--r-- | sys/dev/hpc/hpcapm.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/sys/dev/hpc/hpcapm.c b/sys/dev/hpc/hpcapm.c index c72aed851d6..119918efccf 100644 --- a/sys/dev/hpc/hpcapm.c +++ b/sys/dev/hpc/hpcapm.c @@ -1,4 +1,4 @@ -/* $NetBSD: hpcapm.c,v 1.7 2006/03/29 06:37:35 thorpej Exp $ */ +/* $NetBSD: hpcapm.c,v 1.8 2006/08/22 01:55:00 uwe Exp $ */ /* * Copyright (c) 2000 Takemura Shin @@ -29,7 +29,7 @@ */ #include <sys/cdefs.h> -__KERNEL_RCSID(0, "$NetBSD: hpcapm.c,v 1.7 2006/03/29 06:37:35 thorpej Exp $"); +__KERNEL_RCSID(0, "$NetBSD: hpcapm.c,v 1.8 2006/08/22 01:55:00 uwe Exp $"); #include <sys/param.h> #include <sys/device.h> @@ -136,10 +136,10 @@ hpcapm_attach(struct device *parent, struct device *self, void *aux) CONFIG_HOOK_SHARE, hpcapm_hook, sc); - sc->sc_battery_hook = config_hook(CONFIG_HOOK_PMEVENT, - CONFIG_HOOK_PMEVENT_AC, - CONFIG_HOOK_SHARE, - hpcapm_hook, sc); + sc->sc_ac_hook = config_hook(CONFIG_HOOK_PMEVENT, + CONFIG_HOOK_PMEVENT_AC, + CONFIG_HOOK_SHARE, + hpcapm_hook, sc); aaa.accessops = &hpcapm_accessops; aaa.accesscookie = sc; |
