hifn/safe: Remove dummy calls to bus_generic_detach

These drivers do not add child devices, so there's no need to try to
detach children.

Reviewed by:	imp
Differential Revision:	https://reviews.freebsd.org/D47390

(cherry picked from commit 8b54d874c70d9fb3ed2e059f65c91b3e0eaadbd7)
This commit is contained in:
John Baldwin 2024-11-04 20:31:30 -05:00
parent 7a88ac783b
commit 2266614d07
2 changed files with 0 additions and 3 deletions

View file

@ -637,8 +637,6 @@ hifn_detach(device_t dev)
crypto_unregister_all(sc->sc_cid);
bus_generic_detach(dev); /*XXX should be no children, right? */
bus_teardown_intr(dev, sc->sc_irq, sc->sc_intrhand);
/* XXX don't store rid */
bus_release_resource(dev, SYS_RES_IRQ, 0, sc->sc_irq);

View file

@ -464,7 +464,6 @@ safe_detach(device_t dev)
mtx_destroy(&sc->sc_ringmtx);
safe_dma_free(sc, &sc->sc_ringalloc);
bus_generic_detach(dev);
bus_teardown_intr(dev, sc->sc_irq, sc->sc_ih);
bus_release_resource(dev, SYS_RES_IRQ, 0, sc->sc_irq);