diff options
| author | uwe <uwe@NetBSD.org> | 2009-04-05 02:04:40 +0000 |
|---|---|---|
| committer | uwe <uwe@NetBSD.org> | 2009-04-05 02:04:40 +0000 |
| commit | 2ec6410a850002e4addcc65f246083392ba22f64 (patch) | |
| tree | f76b02e31a407072ebd3f99df8a506a3b1f8390e /sys/dev | |
| parent | 12a97187115eb81e452315e14bfed0f97ab82253 (diff) | |
Register with pmf(9), tell it we don't need anything.
Diffstat (limited to 'sys/dev')
| -rw-r--r-- | sys/dev/hpc/hpcapm.c | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/sys/dev/hpc/hpcapm.c b/sys/dev/hpc/hpcapm.c index ece66e96bf4..9dd665c1524 100644 --- a/sys/dev/hpc/hpcapm.c +++ b/sys/dev/hpc/hpcapm.c @@ -1,4 +1,4 @@ -/* $NetBSD: hpcapm.c,v 1.15 2009/04/03 04:13:17 uwe Exp $ */ +/* $NetBSD: hpcapm.c,v 1.16 2009/04/05 02:04:40 uwe Exp $ */ /* * Copyright (c) 2000 Takemura Shin @@ -29,7 +29,7 @@ */ #include <sys/cdefs.h> -__KERNEL_RCSID(0, "$NetBSD: hpcapm.c,v 1.15 2009/04/03 04:13:17 uwe Exp $"); +__KERNEL_RCSID(0, "$NetBSD: hpcapm.c,v 1.16 2009/04/05 02:04:40 uwe Exp $"); #ifdef _KERNEL_OPT #include "opt_hpcapm.h" @@ -153,6 +153,9 @@ hpcapm_attach(struct device *parent, aaa.apm_detail = 0x0102; sc->sc_apmdev = config_found_ia(self, "apmdevif", &aaa, apmprint); + + if (!pmf_device_register(self, NULL, NULL)) + aprint_error_dev(self, "unable to establish power handler\n"); } static int |
