x86/irq: Add allocation type for parent domain retrieval
[linux-2.6-microblaze.git] / drivers / iommu / amd / iommu.c
index cf26b73..b98b0ab 100644 (file)
@@ -3548,6 +3548,14 @@ static struct irq_domain *get_ir_irq_domain(struct irq_alloc_info *info)
        if (!info)
                return NULL;
 
+       switch (info->type) {
+       case X86_IRQ_ALLOC_TYPE_IOAPIC_GET_PARENT:
+       case X86_IRQ_ALLOC_TYPE_HPET_GET_PARENT:
+               break;
+       default:
+               return NULL;
+       }
+
        devid = get_devid(info);
        if (devid >= 0) {
                iommu = amd_iommu_rlookup_table[devid];