Skip to contentSkip to conversation

drivers/atm/he: Convert to module_pci_driver

PATCH Applied Libo Chen 1 participant 1 message May 27, 2013

Subsystems (3)
lore
Share & tools
lore

Libo Chen

author
#0 lore raw

PATCH 8/24 drivers/atm/he: Convert to module_pci_driver

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

---
 drivers/atm/he.c |   13 +------------
 1 files changed, 1 insertions(+), 12 deletions(-)
drivers/atm/he.c +1 -12
index 507362a..80f9743 100644
@@ -2872,15 +2872,4 @@ static struct pci_driver he_driver = {
 	.id_table =	he_pci_tbl,
 };
 
-static int __init he_init(void)
-{
-	return pci_register_driver(&he_driver);
-}
-
-static void __exit he_cleanup(void)
-{
-	pci_unregister_driver(&he_driver);
-}
-
-module_init(he_init);
-module_exit(he_cleanup);
+module_pci_driver(he_driver);
Signature · 1 line
1.7.1