diff options
author | Sam Leffler <sam@FreeBSD.org> | 2003-06-04 17:58:20 +0000 |
---|---|---|
committer | Sam Leffler <sam@FreeBSD.org> | 2003-06-04 17:58:20 +0000 |
commit | 236266ee3107903d8f3fe2fee2c87b4ddc89fa68 (patch) | |
tree | 5cf21e9fd24e7a88cdcee42173daa16dfbcdc78a /sys/dev/hifn | |
parent | 345b9e22926687577323a5c0f0eb19f126b02825 (diff) | |
download | src-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.c | 4 |
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 | |