summaryrefslogtreecommitdiff
path: root/sys/dev/ic/atw.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/atw.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/atw.c')
-rw-r--r--sys/dev/ic/atw.c20
1 files changed, 1 insertions, 19 deletions
diff --git a/sys/dev/ic/atw.c b/sys/dev/ic/atw.c
index f13e7f3818d..2c61da2ade7 100644
--- a/sys/dev/ic/atw.c
+++ b/sys/dev/ic/atw.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: atw.c,v 1.72 2010/09/06 19:20:21 deraadt Exp $ */
+/* $OpenBSD: atw.c,v 1.73 2010/09/07 16:21:42 deraadt Exp $ */
/* $NetBSD: atw.c,v 1.69 2004/07/23 07:07:55 dyoung Exp $ */
/*-
@@ -842,15 +842,6 @@ atw_attach(struct atw_softc *sc)
sizeof(struct ieee80211_frame) + 64);
#endif
- /*
- * Add a suspend hook to make sure we come back up after a
- * resume.
- */
- sc->sc_powerhook = powerhook_establish(atw_powerhook, sc);
- if (sc->sc_powerhook == NULL)
- printf("%s: WARNING: unable to establish power hook\n",
- sc->sc_dev.dv_xname);
-
memset(&sc->sc_rxtapu, 0, sizeof(sc->sc_rxtapu));
sc->sc_rxtap.ar_ihdr.it_len = sizeof(sc->sc_rxtapu);
sc->sc_rxtap.ar_ihdr.it_present = ATW_RX_RADIOTAP_PRESENT;
@@ -2749,9 +2740,6 @@ atw_detach(struct atw_softc *sc)
sizeof(struct atw_control_data));
bus_dmamem_free(sc->sc_dmat, &sc->sc_cdseg, sc->sc_cdnseg);
- if (sc->sc_powerhook != NULL)
- powerhook_disestablish(sc->sc_powerhook);
-
if (sc->sc_srom)
free(sc->sc_srom, M_DEVBUF);
@@ -4011,12 +3999,6 @@ atw_resume(void *arg1, void *arg2)
atw_init(ifp);
}
-void
-atw_powerhook(int why, void *arg)
-{
- atw_activate(arg, why);
-}
-
/*
* atw_ioctl: [ifnet interface function]
*