Commit 54a582382d997ec142a4700f9171cc28e3a9b8f6
Committed by
Bjorn Helgaas
1 parent
2add0ec14c
Exists in
smarc-imx_3.14.28_1.0.0_ga
and in
1 other branch
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>
Showing 1 changed file with 1 additions and 12 deletions Side-by-side Diff
drivers/pci/ioapic.c
... | ... | @@ -113,18 +113,7 @@ |
113 | 113 | .remove = ioapic_remove, |
114 | 114 | }; |
115 | 115 | |
116 | -static int __init ioapic_init(void) | |
117 | -{ | |
118 | - return pci_register_driver(&ioapic_driver); | |
119 | -} | |
120 | - | |
121 | -static void __exit ioapic_exit(void) | |
122 | -{ | |
123 | - pci_unregister_driver(&ioapic_driver); | |
124 | -} | |
125 | - | |
126 | -module_init(ioapic_init); | |
127 | -module_exit(ioapic_exit); | |
116 | +module_pci_driver(ioapic_driver); | |
128 | 117 | |
129 | 118 | MODULE_LICENSE("GPL"); |