Commit 54a58238 authored by Libo Chen's avatar Libo Chen Committed by Bjorn Helgaas

PCI: Convert ioapic.c to module_pci_driver

Use module_pci_driver instead of init/exit, make code clean.
Signed-off-by: default avatarLibo Chen <libo.chen@huawei.com>
Signed-off-by: default avatarBjorn Helgaas <bhelgaas@google.com>
parent 2add0ec1
...@@ -113,17 +113,6 @@ static struct pci_driver ioapic_driver = { ...@@ -113,17 +113,6 @@ static struct pci_driver ioapic_driver = {
.remove = ioapic_remove, .remove = ioapic_remove,
}; };
static int __init ioapic_init(void) module_pci_driver(ioapic_driver);
{
return pci_register_driver(&ioapic_driver);
}
static void __exit ioapic_exit(void)
{
pci_unregister_driver(&ioapic_driver);
}
module_init(ioapic_init);
module_exit(ioapic_exit);
MODULE_LICENSE("GPL"); MODULE_LICENSE("GPL");
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment