mirror of
https://github.com/opnsense/src.git
synced 2026-05-28 04:12:45 -04:00
detach RNG test facility on device detach
This commit is contained in:
parent
345b9e2292
commit
236266ee31
1 changed files with 4 additions and 0 deletions
|
|
@ -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 |
|
||||
|
|
|
|||
Loading…
Reference in a new issue