detach RNG test facility on device detach

This commit is contained in:
Sam Leffler 2003-06-04 17:58:20 +00:00
parent 345b9e2292
commit 236266ee31

View file

@ -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 |