summaryrefslogtreecommitdiffstats
path: root/sys/pci/if_sis.c
diff options
context:
space:
mode:
authorcognet <cognet@FreeBSD.org>2003-05-06 02:00:01 +0000
committercognet <cognet@FreeBSD.org>2003-05-06 02:00:01 +0000
commit73908286c7508fbb279de59135698cf84220918b (patch)
tree967962ad589590ab9ae1402e1bb30fb7f57c511f /sys/pci/if_sis.c
parent5f6dec68a2cee60d28ba7cdf8a39357b3e902a7b (diff)
downloadFreeBSD-src-73908286c7508fbb279de59135698cf84220918b.zip
FreeBSD-src-73908286c7508fbb279de59135698cf84220918b.tar.gz
Don't call timeout() in sis_tick(), this is done earlier by mii_tick(), and it
leads to a panic at unload time, as we own 2 instances of callout and untimeout() only one. Will I'm there, remove a call to callout_handler_init(), one is enough. Reviewed by: wpaul
Diffstat (limited to 'sys/pci/if_sis.c')
-rw-r--r--sys/pci/if_sis.c4
1 files changed, 0 insertions, 4 deletions
diff --git a/sys/pci/if_sis.c b/sys/pci/if_sis.c
index bb502f4..62b4b50 100644
--- a/sys/pci/if_sis.c
+++ b/sys/pci/if_sis.c
@@ -1374,8 +1374,6 @@ sis_attach(dev)
goto fail;
}
- callout_handle_init(&sc->sis_stat_ch);
-
/*
* Call MI attach routine.
*/
@@ -1748,8 +1746,6 @@ sis_tick(xsc)
sis_start(ifp);
}
- sc->sis_stat_ch = timeout(sis_tick, sc, hz);
-
SIS_UNLOCK(sc);
return;
OpenPOWER on IntegriCloud