| 720 | } |
| 721 | |
| 722 | static void |
| 723 | ccp_release_interrupts(struct ccp_softc *sc) |
| 724 | { |
| 725 | unsigned i; |
| 726 | |
| 727 | for (i = 0; i < sc->intr_count; i++) { |
| 728 | if (sc->intr_tag[i] != NULL) |
| 729 | bus_teardown_intr(sc->dev, sc->intr_res[i], |
| 730 | sc->intr_tag[i]); |
| 731 | if (sc->intr_res[i] != NULL) |
| 732 | bus_release_resource(sc->dev, SYS_RES_IRQ, |
| 733 | rman_get_rid(sc->intr_res[i]), sc->intr_res[i]); |
| 734 | } |
| 735 | |
| 736 | pci_release_msi(sc->dev); |
| 737 | } |
| 738 | |
| 739 | int |
| 740 | ccp_hw_attach(device_t dev) |
no test coverage detected