]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
drivers/scsi/a100u2w.c: convert to module_pci_driver
authorLibo Chen <clbchenlibo.chen@huawei.com>
Wed, 19 Jun 2013 00:05:41 +0000 (10:05 +1000)
committerStephen Rothwell <sfr@canb.auug.org.au>
Wed, 19 Jun 2013 07:12:50 +0000 (17:12 +1000)
Use module_pci_driver instead of init/exit, make code clean.

Signed-off-by: Libo Chen <libo.chen@huawei.com>
Cc: James Bottomley <James.Bottomley@HansenPartnership.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
drivers/scsi/a100u2w.c

index 0163457c12bba0abe5859ddc67a99a3dc55338f4..db3710ff1b68fd2ed743933c6f83838019fd8781 100644 (file)
@@ -1227,19 +1227,9 @@ static struct pci_driver inia100_pci_driver = {
        .remove         = inia100_remove_one,
 };
 
-static int __init inia100_init(void)
-{
-       return pci_register_driver(&inia100_pci_driver);
-}
-
-static void __exit inia100_exit(void)
-{
-       pci_unregister_driver(&inia100_pci_driver);
-}
+module_pci_driver(inia100_pci_driver);
 
 MODULE_DESCRIPTION("Initio A100U2W SCSI driver");
 MODULE_AUTHOR("Initio Corporation");
 MODULE_LICENSE("Dual BSD/GPL");
 
-module_init(inia100_init);
-module_exit(inia100_exit);