Skip to content

Commit

Permalink
PCI: Convert ioapic to be builtin only, not modular
Browse files Browse the repository at this point in the history
Convert pci/ioapic.c to be builtin only, with no module option, so we can
support IO-APIC hotplug.  Also make it depend on X86_IO_APIC.

[bhelgaas: changelog]
Signed-off-by: Yinghai Lu <[email protected]>
Signed-off-by: Bjorn Helgaas <[email protected]>
  • Loading branch information
Yinghai Lu authored and bjorn-helgaas committed Jan 3, 2014
1 parent 92e112f commit 7741043
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
3 changes: 2 additions & 1 deletion drivers/pci/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -105,9 +105,10 @@ config PCI_PASID
If unsure, say N.

config PCI_IOAPIC
tristate "PCI IO-APIC hotplug support" if X86
bool "PCI IO-APIC hotplug support" if X86
depends on PCI
depends on ACPI
depends on X86_IO_APIC
default !X86

config PCI_LABEL
Expand Down
6 changes: 5 additions & 1 deletion drivers/pci/ioapic.c
Original file line number Diff line number Diff line change
Expand Up @@ -113,6 +113,10 @@ static struct pci_driver ioapic_driver = {
.remove = ioapic_remove,
};

module_pci_driver(ioapic_driver);
static int __init ioapic_init(void)
{
return pci_register_driver(&ioapic_driver);
}
module_init(ioapic_init);

MODULE_LICENSE("GPL");

0 comments on commit 7741043

Please sign in to comment.