File tree Expand file tree Collapse file tree 2 files changed +15
-13
lines changed Expand file tree Collapse file tree 2 files changed +15
-13
lines changed Original file line number Diff line number Diff line change @@ -205,3 +205,18 @@ int pci_irq_vector(struct pci_dev *dev, unsigned int nr)
205
205
return irq ? irq : - EINVAL ;
206
206
}
207
207
EXPORT_SYMBOL (pci_irq_vector );
208
+
209
+ /**
210
+ * pci_free_irq_vectors() - Free previously allocated IRQs for a device
211
+ * @dev: the PCI device to operate on
212
+ *
213
+ * Undo the interrupt vector allocations and possible device MSI/MSI-X
214
+ * enablement earlier done through pci_alloc_irq_vectors_affinity() or
215
+ * pci_alloc_irq_vectors().
216
+ */
217
+ void pci_free_irq_vectors (struct pci_dev * dev )
218
+ {
219
+ pci_disable_msix (dev );
220
+ pci_disable_msi (dev );
221
+ }
222
+ EXPORT_SYMBOL (pci_free_irq_vectors );
Original file line number Diff line number Diff line change @@ -886,19 +886,6 @@ int __pci_enable_msix_range(struct pci_dev *dev,
886
886
}
887
887
}
888
888
889
- /**
890
- * pci_free_irq_vectors - free previously allocated IRQs for a device
891
- * @dev: PCI device to operate on
892
- *
893
- * Undoes the allocations and enabling in pci_alloc_irq_vectors().
894
- */
895
- void pci_free_irq_vectors (struct pci_dev * dev )
896
- {
897
- pci_disable_msix (dev );
898
- pci_disable_msi (dev );
899
- }
900
- EXPORT_SYMBOL (pci_free_irq_vectors );
901
-
902
889
/**
903
890
* pci_irq_get_affinity - return the affinity of a particular MSI vector
904
891
* @dev: PCI device to operate on
You can’t perform that action at this time.
0 commit comments