static int rtsx_pci_detach(device_t self, int flags) { struct rtsx_pci_softc *sc = device_private(self); int rv; rv = rtsx_detach(&sc->sc, flags); if (rv) return rv; pci_intr_disestablish(sc->sc_pc, sc->sc_ih); return 0; }
static int rtsx_pci_detach(device_t self, int flags) { struct rtsx_pci_softc *sc = device_private(self); int rv; rv = rtsx_detach(&sc->sc, flags); if (rv) return rv; pci_intr_disestablish(sc->sc_pc, sc->sc_ih); #ifdef __HAVE_PCI_MSI_MSIX pci_intr_release(sc->sc_pc, sc->sc_pihp, 1); #endif /* __HAVE_PCI_MSI_MSIX */ return 0; }