aboutsummaryrefslogtreecommitdiff
path: root/sys/dev/hifn
diff options
context:
space:
mode:
authorSam Leffler <sam@FreeBSD.org>2003-06-04 17:58:20 +0000
committerSam Leffler <sam@FreeBSD.org>2003-06-04 17:58:20 +0000
commit236266ee3107903d8f3fe2fee2c87b4ddc89fa68 (patch)
tree5cf21e9fd24e7a88cdcee42173daa16dfbcdc78a /sys/dev/hifn
parent345b9e22926687577323a5c0f0eb19f126b02825 (diff)
downloadsrc-236266ee3107903d8f3fe2fee2c87b4ddc89fa68.tar.gz
src-236266ee3107903d8f3fe2fee2c87b4ddc89fa68.zip
detach RNG test facility on device detach
Notes
Notes: svn path=/head/; revision=115848
Diffstat (limited to 'sys/dev/hifn')
-rw-r--r--sys/dev/hifn/hifn7751.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/sys/dev/hifn/hifn7751.c b/sys/dev/hifn/hifn7751.c
index 608edeb16938..e56f444706bf 100644
--- a/sys/dev/hifn/hifn7751.c
+++ b/sys/dev/hifn/hifn7751.c
@@ -530,6 +530,10 @@ hifn_detach(device_t dev)
/*XXX other resources */
callout_stop(&sc->sc_tickto);
callout_stop(&sc->sc_rngto);
+#ifdef HIFN_RNDTEST
+ if (sc->sc_rndtest)
+ rndtest_detach(sc->sc->rndtest);
+#endif
/* Turn off DMA polling */
WRITE_REG_1(sc, HIFN_1_DMA_CNFG, HIFN_DMACNFG_MSTRESET |