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:
parent
2add0ec14c
commit
54a582382d
@ -113,17 +113,6 @@ static struct pci_driver ioapic_driver = {
|
||||
.remove = ioapic_remove,
|
||||
};
|
||||
|
||||
static int __init ioapic_init(void)
|
||||
{
|
||||
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_pci_driver(ioapic_driver);
|
||||
|
||||
MODULE_LICENSE("GPL");
|
||||
|
Loading…
Reference in New Issue
Block a user