summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorsthen <sthen@openbsd.org>2009-07-21 07:30:18 +0000
committersthen <sthen@openbsd.org>2009-07-21 07:30:18 +0000
commit333911a871df28bb1555524c05871734dac4aa35 (patch)
tree5b469f68598148170f680b2d2e3ea10efc0f8356
parentPass a pci_chipset_tag_t to pci_intr_line(), to eventually allow the (diff)
downloadwireguard-openbsd-333911a871df28bb1555524c05871734dac4aa35.tar.xz
wireguard-openbsd-333911a871df28bb1555524c05871734dac4aa35.zip
Call timeout_set() from rl_attach, not rl_init(). From Brad.
-rw-r--r--sys/dev/ic/rtl81x9.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/sys/dev/ic/rtl81x9.c b/sys/dev/ic/rtl81x9.c
index bdcfe83046f..da531faf61e 100644
--- a/sys/dev/ic/rtl81x9.c
+++ b/sys/dev/ic/rtl81x9.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: rtl81x9.c,v 1.65 2009/07/18 11:24:39 sthen Exp $ */
+/* $OpenBSD: rtl81x9.c,v 1.66 2009/07/21 07:30:18 sthen Exp $ */
/*
* Copyright (c) 1997, 1998
@@ -1016,7 +1016,6 @@ void rl_init(xsc)
splx(s);
- timeout_set(&sc->sc_tick_tmo, rl_tick, sc);
timeout_add_sec(&sc->sc_tick_tmo, 1);
}
@@ -1256,6 +1255,8 @@ rl_attach(sc)
ifp->if_capabilities = IFCAP_VLAN_MTU;
+ timeout_set(&sc->sc_tick_tmo, rl_tick, sc);
+
/*
* Initialize our media structures and probe the MII.
*/