summaryrefslogtreecommitdiff
path: root/sys/dev/pci/if_ix.c
diff options
context:
space:
mode:
authorTheo de Raadt <deraadt@cvs.openbsd.org>2010-08-27 08:24:54 +0000
committerTheo de Raadt <deraadt@cvs.openbsd.org>2010-08-27 08:24:54 +0000
commit32ab9947ec48790be06f7cb0be6364c3f3717a2d (patch)
tree4b06c87fe89b7a601660da4bc163c8a99e5fb4f8 /sys/dev/pci/if_ix.c
parent2cdeeb53c65aad9d946c2b1161c1586557c2c90e (diff)
These do not need powerhook functions.
ok jsg
Diffstat (limited to 'sys/dev/pci/if_ix.c')
-rw-r--r--sys/dev/pci/if_ix.c18
1 files changed, 1 insertions, 17 deletions
diff --git a/sys/dev/pci/if_ix.c b/sys/dev/pci/if_ix.c
index 9081531e6c4..585b506875f 100644
--- a/sys/dev/pci/if_ix.c
+++ b/sys/dev/pci/if_ix.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: if_ix.c,v 1.43 2010/08/11 11:35:09 jsg Exp $ */
+/* $OpenBSD: if_ix.c,v 1.44 2010/08/27 08:24:53 deraadt Exp $ */
/******************************************************************************
@@ -77,7 +77,6 @@ const struct pci_matchid ixgbe_devices[] = {
int ixgbe_probe(struct device *, void *, void *);
void ixgbe_attach(struct device *, struct device *, void *);
int ixgbe_detach(struct device *, int);
-void ixgbe_power(int, void *);
void ixgbe_start(struct ifnet *);
void ixgbe_start_locked(struct tx_ring *, struct ifnet *);
int ixgbe_ioctl(struct ifnet *, u_long, caddr_t);
@@ -294,8 +293,6 @@ ixgbe_attach(struct device *parent, struct device *self, void *aux)
ctrl_ext |= IXGBE_CTRL_EXT_DRV_LOAD;
IXGBE_WRITE_REG(&sc->hw, IXGBE_CTRL_EXT, ctrl_ext);
- sc->powerhook = powerhook_establish(ixgbe_power, sc);
-
printf(", address %s\n", ether_sprintf(sc->hw.mac.addr));
INIT_DEBUGOUT("ixgbe_attach: end");
@@ -346,19 +343,6 @@ ixgbe_detach(struct device *self, int flags)
return (0);
}
-void
-ixgbe_power(int why, void *arg)
-{
- struct ix_softc *sc = (struct ix_softc *)arg;
- struct ifnet *ifp;
-
- if (why == PWR_RESUME) {
- ifp = &sc->arpcom.ac_if;
- if (ifp->if_flags & IFF_UP)
- ixgbe_init(sc);
- }
-}
-
/*********************************************************************
* Transmit entry point
*