Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/dev/hpc Remove deprecated powerhook_establish(9) since a...
details: https://anonhg.NetBSD.org/src/rev/123044314ee7
branches: trunk
changeset: 756768:123044314ee7
user: tsutsui <tsutsui%NetBSD.org@localhost>
date: Sun Aug 01 02:43:12 2010 +0000
description:
Remove deprecated powerhook_establish(9) since apmdev(4) which required
the old API was gone.
diffstat:
sys/dev/hpc/hpcfb.c | 16 ++--------------
1 files changed, 2 insertions(+), 14 deletions(-)
diffs (44 lines):
diff -r 42fb7eb449c8 -r 123044314ee7 sys/dev/hpc/hpcfb.c
--- a/sys/dev/hpc/hpcfb.c Sat Jul 31 22:14:18 2010 +0000
+++ b/sys/dev/hpc/hpcfb.c Sun Aug 01 02:43:12 2010 +0000
@@ -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_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 @@
}
#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");
}
Home |
Main Index |
Thread Index |
Old Index