diff options
author | sam <sam@FreeBSD.org> | 2003-06-04 17:58:20 +0000 |
---|---|---|
committer | sam <sam@FreeBSD.org> | 2003-06-04 17:58:20 +0000 |
commit | 57418337becf0a33de841f29eb62744e43ef375f (patch) | |
tree | 5cf21e9fd24e7a88cdcee42173daa16dfbcdc78a /sys/dev/hifn | |
parent | e2b5e774b3e8ae74eb734ea3c51ff82bacec8600 (diff) | |
download | FreeBSD-src-57418337becf0a33de841f29eb62744e43ef375f.zip FreeBSD-src-57418337becf0a33de841f29eb62744e43ef375f.tar.gz |
detach RNG test facility on device detach
Diffstat (limited to 'sys/dev/hifn')
-rw-r--r-- | sys/dev/hifn/hifn7751.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/sys/dev/hifn/hifn7751.c b/sys/dev/hifn/hifn7751.c index 608edeb..e56f444 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 | |