Commit b3f82364 authored by Thomas Gleixner's avatar Thomas Gleixner
Browse files

x86/apic/msi: Use PCI device MSI property

parent 0bcfade9
Loading
Loading
Loading
Loading
+1 −4
Original line number Diff line number Diff line
@@ -160,11 +160,8 @@ static struct irq_chip pci_msi_controller = {
int pci_msi_prepare(struct irq_domain *domain, struct device *dev, int nvec,
		    msi_alloc_info_t *arg)
{
	struct pci_dev *pdev = to_pci_dev(dev);
	struct msi_desc *desc = first_pci_msi_entry(pdev);

	init_irq_alloc_info(arg, NULL);
	if (desc->pci.msi_attrib.is_msix) {
	if (to_pci_dev(dev)->msix_enabled) {
		arg->type = X86_IRQ_ALLOC_TYPE_PCI_MSIX;
	} else {
		arg->type = X86_IRQ_ALLOC_TYPE_PCI_MSI;