diff options
author | Stuart Henderson <sthen@cvs.openbsd.org> | 2009-07-21 07:30:19 +0000 |
---|---|---|
committer | Stuart Henderson <sthen@cvs.openbsd.org> | 2009-07-21 07:30:19 +0000 |
commit | 7b9e4ced0b43bb3e64dcb498b36308e46da08858 (patch) | |
tree | 0fc509e85cfd4dd899f1c67f0d1aca10f78819eb /sys/dev/ic/rtl81x9.c | |
parent | c256653f828f5665420bfa0957fc0e576928c4a7 (diff) |
Call timeout_set() from rl_attach, not rl_init(). From Brad.
Diffstat (limited to 'sys/dev/ic/rtl81x9.c')
-rw-r--r-- | sys/dev/ic/rtl81x9.c | 5 |
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. */ |