]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
drivers/block/sx8.c: use module_pci_driver()
authorJingoo Han <jg1.han@samsung.com>
Tue, 5 Nov 2013 05:55:17 +0000 (16:55 +1100)
committerStephen Rothwell <sfr@canb.auug.org.au>
Tue, 5 Nov 2013 05:55:17 +0000 (16:55 +1100)
Use module_pci_driver() macro which makes the code smaller and simpler.

Signed-off-by: Jingoo Han <jg1.han@samsung.com>
Cc: Jens Axboe <axboe@kernel.dk>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
drivers/block/sx8.c

index 3fb6ab4c8b4e9e96f9ba487cf801fdcd776f0c73..7b2ac9573984c750950d727f692aa9844e8c7676 100644 (file)
@@ -1747,17 +1747,4 @@ static void carm_remove_one (struct pci_dev *pdev)
        pci_set_drvdata(pdev, NULL);
 }
 
-static int __init carm_init(void)
-{
-       return pci_register_driver(&carm_driver);
-}
-
-static void __exit carm_exit(void)
-{
-       pci_unregister_driver(&carm_driver);
-}
-
-module_init(carm_init);
-module_exit(carm_exit);
-
-
+module_pci_driver(carm_driver);