summaryrefslogtreecommitdiff
path: root/sys/dev/ic/rt2661.c
diff options
context:
space:
mode:
authorTheo de Raadt <deraadt@cvs.openbsd.org>2010-09-07 16:21:48 +0000
committerTheo de Raadt <deraadt@cvs.openbsd.org>2010-09-07 16:21:48 +0000
commit0909b33ee356b8b24e8cfd8ef9abfcce75eac449 (patch)
tree60b4dbc9eaed4dfda443b0bf3fa9ec06a75b03ad /sys/dev/ic/rt2661.c
parent06c96fb315950bff13bd7a73d355ebdc21e85191 (diff)
remove the powerhook code. All architectures now use the ca_activate tree
traversal code to suspend/resume ok oga kettenis blambert
Diffstat (limited to 'sys/dev/ic/rt2661.c')
-rw-r--r--sys/dev/ic/rt2661.c30
1 files changed, 1 insertions, 29 deletions
diff --git a/sys/dev/ic/rt2661.c b/sys/dev/ic/rt2661.c
index e7231b0281d..d329378621e 100644
--- a/sys/dev/ic/rt2661.c
+++ b/sys/dev/ic/rt2661.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: rt2661.c,v 1.62 2010/09/06 19:20:21 deraadt Exp $ */
+/* $OpenBSD: rt2661.c,v 1.63 2010/09/07 16:21:42 deraadt Exp $ */
/*-
* Copyright (c) 2006
@@ -156,7 +156,6 @@ int rt2661_prepare_beacon(struct rt2661_softc *);
#endif
void rt2661_enable_tsf_sync(struct rt2661_softc *);
int rt2661_get_rssi(struct rt2661_softc *, uint8_t);
-void rt2661_powerhook(int, void *);
static const struct {
uint32_t reg;
@@ -247,12 +246,6 @@ rt2661_attach(void *xsc, int id)
else
rt2661_attachhook(sc);
- sc->sc_powerhook = powerhook_establish(rt2661_powerhook, sc);
- if (sc->sc_powerhook == NULL) {
- printf("%s: WARNING: unable to establish power hook\n",
- sc->sc_dev.dv_xname);
- }
-
return 0;
fail2: rt2661_free_tx_ring(sc, &sc->mgtq);
@@ -383,9 +376,6 @@ rt2661_detach(void *xsc)
timeout_del(&sc->scan_to);
timeout_del(&sc->amrr_to);
- if (sc->sc_powerhook != NULL)
- powerhook_disestablish(sc->sc_powerhook);
-
ieee80211_ifdetach(ifp); /* free all nodes */
if_detach(ifp);
@@ -2925,21 +2915,3 @@ rt2661_get_rssi(struct rt2661_softc *sc, uint8_t raw)
}
return rssi;
}
-
-void
-rt2661_powerhook(int why, void *arg)
-{
- struct rt2661_softc *sc = arg;
- int s;
-
- s = splnet();
- switch (why) {
- case DVACT_SUSPEND:
- rt2661_suspend(sc);
- break;
- case DVACT_RESUME:
- rt2661_resume(sc);
- break;
- }
- splx(s);
-}