]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
drivers/memstick/host/jmb38x_ms: convert to module_pci_driver
authorLibo Chen <libo.chen@huawei.com>
Wed, 19 Jun 2013 00:08:39 +0000 (10:08 +1000)
committerStephen Rothwell <sfr@canb.auug.org.au>
Wed, 19 Jun 2013 07:27:51 +0000 (17:27 +1000)
Use module_pci_driver instead of init/exit, make code clean.

Signed-off-by: Libo Chen <libo.chen@huawei.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
drivers/memstick/host/jmb38x_ms.c

index c37d3756d8d27acd6a7d54252b3e3ac0bdd7e80f..aeabaa5aedf7d2cbf4a76fa15b2547349adc0dd5 100644 (file)
@@ -1046,20 +1046,9 @@ static struct pci_driver jmb38x_ms_driver = {
        .resume = jmb38x_ms_resume
 };
 
-static int __init jmb38x_ms_init(void)
-{
-       return pci_register_driver(&jmb38x_ms_driver);
-}
-
-static void __exit jmb38x_ms_exit(void)
-{
-       pci_unregister_driver(&jmb38x_ms_driver);
-}
+module_pci_driver(jmb38x_ms_driver);
 
 MODULE_AUTHOR("Alex Dubov");
 MODULE_DESCRIPTION("JMicron jmb38x MemoryStick driver");
 MODULE_LICENSE("GPL");
 MODULE_DEVICE_TABLE(pci, jmb38x_ms_id_tbl);
-
-module_init(jmb38x_ms_init);
-module_exit(jmb38x_ms_exit);