]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
drivers/memstick/host/r592.c: convert to module_pci_driver
authorLibo Chen <clbchenlibo.chen@huawei.com>
Fri, 7 Jun 2013 00:09:53 +0000 (10:09 +1000)
committerStephen Rothwell <sfr@canb.auug.org.au>
Fri, 7 Jun 2013 05:43:24 +0000 (15:43 +1000)
Signed-off-by: Libo Chen <libo.chen@huawei.com>
Cc: Maxim Levitsky <maximlevitsky@gmail.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
drivers/memstick/host/r592.c

index 9718661c1fb600d5433bfe202013dbfaae79a717..1b6e91345222f7aa3e41bb4c7066fad833feae94 100644 (file)
@@ -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)");