/* Being called during hotplug remove, from which the device function is hot-removed. All previous assigned MSI/MSI-X irqs, if allocated for this device function, are reclaimed to unused state, which may be used later on.  */
void msi_remove_pci_irq_vectors(struct pci_dev *dev)
/* Being called during hotplug remove, from which the device function is hot-removed. All previous assigned MSI/MSI-X irqs, if allocated for this device function, are reclaimed to unused state, which may be used later on.  */
void msi_remove_pci_irq_vectors(struct pci_dev *dev)
{
	if (!pci_msi_enable || !dev)
		return;
	if (dev->msi_enabled || dev->msix_enabled)
		free_msi_irqs(dev);
}