diff options
Diffstat (limited to 'arch/x86/pci/xen.c')
-rw-r--r-- | arch/x86/pci/xen.c | 17 |
1 files changed, 6 insertions, 11 deletions
diff --git a/arch/x86/pci/xen.c b/arch/x86/pci/xen.c index 55c8cc3647a7..54d5f3131060 100644 --- a/arch/x86/pci/xen.c +++ b/arch/x86/pci/xen.c | |||
@@ -429,8 +429,11 @@ static __init void xen_setup_acpi_sci(void) | |||
429 | return; | 429 | return; |
430 | } | 430 | } |
431 | #endif | 431 | #endif |
432 | static int __init pci_xen_initial_domain(void) | 432 | |
433 | int __init pci_xen_initial_domain(void) | ||
433 | { | 434 | { |
435 | int pirq, irq; | ||
436 | |||
434 | #ifdef CONFIG_PCI_MSI | 437 | #ifdef CONFIG_PCI_MSI |
435 | x86_msi.setup_msi_irqs = xen_initdom_setup_msi_irqs; | 438 | x86_msi.setup_msi_irqs = xen_initdom_setup_msi_irqs; |
436 | x86_msi.teardown_msi_irq = xen_teardown_msi_irq; | 439 | x86_msi.teardown_msi_irq = xen_teardown_msi_irq; |
@@ -439,15 +442,6 @@ static int __init pci_xen_initial_domain(void) | |||
439 | xen_setup_acpi_sci(); | 442 | xen_setup_acpi_sci(); |
440 | __acpi_register_gsi = acpi_register_gsi_xen; | 443 | __acpi_register_gsi = acpi_register_gsi_xen; |
441 | #endif | 444 | #endif |
442 | return 0; | ||
443 | } | ||
444 | |||
445 | void __init xen_setup_pirqs(void) | ||
446 | { | ||
447 | int pirq, irq; | ||
448 | |||
449 | pci_xen_initial_domain(); | ||
450 | |||
451 | if (0 == nr_ioapics) { | 445 | if (0 == nr_ioapics) { |
452 | for (irq = 0; irq < NR_IRQS_LEGACY; irq++) { | 446 | for (irq = 0; irq < NR_IRQS_LEGACY; irq++) { |
453 | pirq = xen_allocate_pirq_gsi(irq); | 447 | pirq = xen_allocate_pirq_gsi(irq); |
@@ -456,7 +450,7 @@ void __init xen_setup_pirqs(void) | |||
456 | break; | 450 | break; |
457 | irq = xen_bind_pirq_gsi_to_irq(irq, pirq, 0, "xt-pic"); | 451 | irq = xen_bind_pirq_gsi_to_irq(irq, pirq, 0, "xt-pic"); |
458 | } | 452 | } |
459 | return; | 453 | return 0; |
460 | } | 454 | } |
461 | #ifdef CONFIG_ACPI | 455 | #ifdef CONFIG_ACPI |
462 | /* Pre-allocate legacy irqs */ | 456 | /* Pre-allocate legacy irqs */ |
@@ -471,6 +465,7 @@ void __init xen_setup_pirqs(void) | |||
471 | true /* allocate IRQ */); | 465 | true /* allocate IRQ */); |
472 | } | 466 | } |
473 | #endif | 467 | #endif |
468 | return 0; | ||
474 | } | 469 | } |
475 | 470 | ||
476 | struct xen_device_domain_owner { | 471 | struct xen_device_domain_owner { |