소스 검색

xen/pci: Use acpi_noirq_set() helper to avoid #ifdef

No need to keep an #ifdef since we have a helper (in x86 world).  Use it
instead.

Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
Andy Shevchenko 7 년 전
부모
커밋
88e9ca161c
1개의 변경된 파일1개의 추가작업 그리고 3개의 파일을 삭제
  1. 1 3
      arch/x86/pci/xen.c

+ 1 - 3
arch/x86/pci/xen.c

@@ -409,10 +409,8 @@ int __init pci_xen_init(void)
 	pcibios_enable_irq = xen_pcifront_enable_irq;
 	pcibios_enable_irq = xen_pcifront_enable_irq;
 	pcibios_disable_irq = NULL;
 	pcibios_disable_irq = NULL;
 
 
-#ifdef CONFIG_ACPI
 	/* Keep ACPI out of the picture */
 	/* Keep ACPI out of the picture */
-	acpi_noirq = 1;
-#endif
+	acpi_noirq_set();
 
 
 #ifdef CONFIG_PCI_MSI
 #ifdef CONFIG_PCI_MSI
 	x86_msi.setup_msi_irqs = xen_setup_msi_irqs;
 	x86_msi.setup_msi_irqs = xen_setup_msi_irqs;