diff options
| author | tsutsui <tsutsui@NetBSD.org> | 2010-08-01 02:43:12 +0000 |
|---|---|---|
| committer | tsutsui <tsutsui@NetBSD.org> | 2010-08-01 02:43:12 +0000 |
| commit | 9a7de9c704f072d228bedbfc5232fe2977344f9f (patch) | |
| tree | 387f7b4ed9a6dc988b935cb104895107cef372d1 /sys/dev | |
| parent | c271d4f25f8f7c69e2250c08a32d132c0ca36269 (diff) | |
Remove deprecated powerhook_establish(9) since apmdev(4) which required
the old API was gone.
Diffstat (limited to 'sys/dev')
| -rw-r--r-- | sys/dev/hpc/hpcfb.c | 16 |
1 files changed, 2 insertions, 14 deletions
diff --git a/sys/dev/hpc/hpcfb.c b/sys/dev/hpc/hpcfb.c index 564e5f13556..662953c6eec 100644 --- a/sys/dev/hpc/hpcfb.c +++ b/sys/dev/hpc/hpcfb.c @@ -1,4 +1,4 @@ -/* $NetBSD: hpcfb.c,v 1.56 2010/06/18 09:11:44 tsutsui Exp $ */ +/* $NetBSD: hpcfb.c,v 1.57 2010/08/01 02:43:12 tsutsui Exp $ */ /*- * Copyright (c) 1999 @@ -43,7 +43,7 @@ */ #include <sys/cdefs.h> -__KERNEL_RCSID(0, "$NetBSD: hpcfb.c,v 1.56 2010/06/18 09:11:44 tsutsui Exp $"); +__KERNEL_RCSID(0, "$NetBSD: hpcfb.c,v 1.57 2010/08/01 02:43:12 tsutsui Exp $"); #ifdef _KERNEL_OPT #include "opt_hpcfb.h" @@ -156,7 +156,6 @@ struct hpcfb_softc { struct hpcfb_devconfig *sc_dc; /* device configuration */ const struct hpcfb_accessops *sc_accessops; void *sc_accessctx; - void *sc_powerhook; /* power management hook */ device_t sc_wsdisplay; int sc_screen_resumed; int sc_polling; @@ -344,17 +343,6 @@ hpcfbattach(device_t parent, device_t self, void *aux) } #endif /* HPCFB_JUMP */ - /* - * apmdev(4) uses dopowerhooks(9), apm(4) uses pmf(9), and the - * two apm drivers are mutually exclusive. Register power - * hooks with both. - */ - sc->sc_powerhook = powerhook_establish(device_xname(sc->sc_dev), - hpcfb_power, sc); - if (sc->sc_powerhook == NULL) - aprint_error_dev(self, - "WARNING: unable to establish power hook\n"); - if (!pmf_device_register(self, hpcfb_suspend, hpcfb_resume)) aprint_error_dev(self, "unable to establish power handler\n"); } |
