diff options
Diffstat (limited to 'sys/dev/mii/brgphy.c')
-rw-r--r-- | sys/dev/mii/brgphy.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/sys/dev/mii/brgphy.c b/sys/dev/mii/brgphy.c index 3d9838ad666..af7ffc56ce6 100644 --- a/sys/dev/mii/brgphy.c +++ b/sys/dev/mii/brgphy.c @@ -1,4 +1,4 @@ -/* $OpenBSD: brgphy.c,v 1.4 2001/04/12 04:51:27 deraadt Exp $ */ +/* $OpenBSD: brgphy.c,v 1.5 2001/08/19 15:07:34 miod Exp $ */ /* * Copyright (c) 2000 @@ -385,7 +385,8 @@ brgphy_mii_phy_auto(mii, waitfor) */ if ((mii->mii_flags & MIIF_DOINGAUTO) == 0) { mii->mii_flags |= MIIF_DOINGAUTO; - timeout(mii_phy_auto_timeout, mii, hz >> 1); + timeout_set(&mii->mii_phy_timo, mii_phy_auto_timeout, mii); + timeout_add(&mii->mii_phy_timo, hz >> 1); } return (EJUSTRETURN); } |