PCI: Convert ioapic.c to module_pci_driver

Use module_pci_driver instead of init/exit, make code clean.

Signed-off-by: Libo Chen <libo.chen@huawei.com>
Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
This commit is contained in:
Libo Chen 2013-05-27 10:28:53 +08:00 committed by Bjorn Helgaas
parent 2add0ec14c
commit 54a582382d
1 changed files with 1 additions and 12 deletions

View File

@ -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");