Skip to contentSkip to conversation

pci: intr_remapping: Fix bogus CONFIG ifdef

PATCH New Thomas Gleixner 1 participant 1 message Oct 10, 2010 PCI

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 pci: intr_remapping: Fix bogus CONFIG ifdef

The interrupt remapping code selects the dynamic allocation of the irq_2_iommu structure depending on CONFIG_GENERIC_HARDIRQS. Introduced by commit d7e51e668 (sparseirq: make some func to be used with genirq)

The correct config switch is CONFIG_SPARSE_IRQ.

---

drivers/pci/intr_remapping.c +1 -1
index fd1d286..af63cc2 100644
@@ -53,7 +53,7 @@ struct irq_2_iommu {
 	u8  irte_mask;
 };
 
-#ifdef CONFIG_GENERIC_HARDIRQS
+#ifdef CONFIG_SPARSE_IRQ
 static struct irq_2_iommu *get_one_free_irq_2_iommu(int node)
 {
 	struct irq_2_iommu *iommu;