]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
drivers/scsi/initio.c: convert to module_pci_driver
authorLibo Chen <clbchenlibo.chen@huawei.com>
Wed, 19 Jun 2013 00:05:42 +0000 (10:05 +1000)
committerStephen Rothwell <sfr@canb.auug.org.au>
Wed, 19 Jun 2013 07:12:50 +0000 (17:12 +1000)
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/initio.c

index 280d5af113d1deb851791ca2f9d254b6d45b149c..1befc26fd95edf1365268e5905dc4c7e3eebbbcd 100644 (file)
@@ -2995,19 +2995,8 @@ static struct pci_driver initio_pci_driver = {
        .remove         = initio_remove_one,
 };
 
-static int __init initio_init_driver(void)
-{
-       return pci_register_driver(&initio_pci_driver);
-}
-
-static void __exit initio_exit_driver(void)
-{
-       pci_unregister_driver(&initio_pci_driver);
-}
+module_pci_driver(initio_pci_driver);
 
 MODULE_DESCRIPTION("Initio INI-9X00U/UW SCSI device driver");
 MODULE_AUTHOR("Initio Corporation");
 MODULE_LICENSE("GPL");
-
-module_init(initio_init_driver);
-module_exit(initio_exit_driver);