Skip to contentSkip to conversation

drivers/memstick/host/r592: Convert to module_pci_driver

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

Subsystems (2)
lore
Share & tools
lore

Libo Chen

author
#0 lore raw

PATCH 12/24 drivers/memstick/host/r592: Convert to module_pci_driver

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

---
 drivers/memstick/host/r592.c |   13 +------------
 1 files changed, 1 insertions(+), 12 deletions(-)
drivers/memstick/host/r592.c +1 -12
index 9718661..1b6e913 100644
@@ -884,18 +884,7 @@ static struct pci_driver r852_pci_driver = {
 	.driver.pm	= &r592_pm_ops,
 };
 
-static __init int r592_module_init(void)
-{
-	return pci_register_driver(&r852_pci_driver);
-}
-
-static void __exit r592_module_exit(void)
-{
-	pci_unregister_driver(&r852_pci_driver);
-}
-
-module_init(r592_module_init);
-module_exit(r592_module_exit);
+module_pci_driver(r852_pci_driver);
 
 module_param_named(enable_dma, r592_enable_dma, bool, S_IRUGO);
 MODULE_PARM_DESC(enable_dma, "Enable usage of the DMA (default)");
Signature · 1 line
1.7.1