diff options
author | 2010-09-07 16:21:35 +0000 | |
---|---|---|
committer | 2010-09-07 16:21:35 +0000 | |
commit | b07c7932b7553c750603267a7dfb3701c6b7051b (patch) | |
tree | 15e26beb119d957ddf417bf5ddbd441000309c2d /sys/dev/pci/if_ipw.c | |
parent | shorten fpu critical sections so that all frees and other manipulations (diff) | |
download | wireguard-openbsd-b07c7932b7553c750603267a7dfb3701c6b7051b.tar.xz wireguard-openbsd-b07c7932b7553c750603267a7dfb3701c6b7051b.zip |
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/pci/if_ipw.c')
-rw-r--r-- | sys/dev/pci/if_ipw.c | 11 |
1 files changed, 1 insertions, 10 deletions
diff --git a/sys/dev/pci/if_ipw.c b/sys/dev/pci/if_ipw.c index 797eb156847..e670fa0dec0 100644 --- a/sys/dev/pci/if_ipw.c +++ b/sys/dev/pci/if_ipw.c @@ -1,4 +1,4 @@ -/* $OpenBSD: if_ipw.c,v 1.92 2010/08/27 20:09:01 deraadt Exp $ */ +/* $OpenBSD: if_ipw.c,v 1.93 2010/09/07 16:21:45 deraadt Exp $ */ /*- * Copyright (c) 2004-2008 @@ -66,7 +66,6 @@ int ipw_match(struct device *, void *, void *); void ipw_attach(struct device *, struct device *, void *); int ipw_activate(struct device *, int); void ipw_resume(void *, void *); -void ipw_powerhook(int, void *); int ipw_dma_alloc(struct ipw_softc *); void ipw_release(struct ipw_softc *); int ipw_media_change(struct ifnet *); @@ -277,8 +276,6 @@ ipw_attach(struct device *parent, struct device *self, void *aux) ic->ic_send_mgmt = ipw_send_mgmt; ieee80211_media_init(ifp, ipw_media_change, ipw_media_status); - sc->powerhook = powerhook_establish(ipw_powerhook, sc); - #if NBPFILTER > 0 bpfattach(&sc->sc_drvbpf, ifp, DLT_IEEE802_11_RADIO, sizeof (struct ieee80211_frame) + IEEE80211_RADIOTAP_HDRLEN); @@ -339,12 +336,6 @@ ipw_resume(void *arg1, void *arg2) splx(s); } -void -ipw_powerhook(int why, void *arg) -{ - ipw_activate(arg, why); -} - int ipw_dma_alloc(struct ipw_softc *sc) { |