diff options
| author | jmcneill <jmcneill@NetBSD.org> | 2008-05-25 16:19:12 +0000 |
|---|---|---|
| committer | jmcneill <jmcneill@NetBSD.org> | 2008-05-25 16:19:12 +0000 |
| commit | 21629183b806441e00dbb742dff42b72ac108d22 (patch) | |
| tree | d46aa585051156833ff8a85cd302fa4eba17edbb /sys/dev | |
| parent | 43af10dd5c196cc9f073c6de9306fe137c322dea (diff) | |
Add pmf support.
Diffstat (limited to 'sys/dev')
| -rw-r--r-- | sys/dev/isa/pckbc_isa.c | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/sys/dev/isa/pckbc_isa.c b/sys/dev/isa/pckbc_isa.c index 33a65c85593..90ca6801b1f 100644 --- a/sys/dev/isa/pckbc_isa.c +++ b/sys/dev/isa/pckbc_isa.c @@ -1,4 +1,4 @@ -/* $NetBSD: pckbc_isa.c,v 1.24 2008/03/15 13:23:25 cube Exp $ */ +/* $NetBSD: pckbc_isa.c,v 1.25 2008/05/25 16:19:12 jmcneill Exp $ */ /* * Copyright (c) 1998 @@ -26,7 +26,7 @@ */ #include <sys/cdefs.h> -__KERNEL_RCSID(0, "$NetBSD: pckbc_isa.c,v 1.24 2008/03/15 13:23:25 cube Exp $"); +__KERNEL_RCSID(0, "$NetBSD: pckbc_isa.c,v 1.25 2008/05/25 16:19:12 jmcneill Exp $"); #include "opt_pckbc.h" @@ -203,6 +203,9 @@ pckbc_isa_attach(device_t parent, device_t self, void *aux) aprint_normal("\n"); + if (!pmf_device_register(self, NULL, pckbc_resume)) + aprint_error_dev(self, "couldn't establish power handler\n"); + /* Finish off the attach. */ pckbc_attach(sc); } |
