From: Libo Chen <clbchenlibo.c...@huawei.com>
Subject: drivers/scsi/initio.c: convert to module_pci_driver

Signed-off-by: Libo Chen <libo.c...@huawei.com>
Cc: James Bottomley <james.bottom...@hansenpartnership.com>
Signed-off-by: Andrew Morton <a...@linux-foundation.org>
---

 drivers/scsi/initio.c |   13 +------------
 1 file changed, 1 insertion(+), 12 deletions(-)

diff -puN 
drivers/scsi/initio.c~drivers-scsi-initio-convert-to-module_pci_driver 
drivers/scsi/initio.c
--- a/drivers/scsi/initio.c~drivers-scsi-initio-convert-to-module_pci_driver
+++ a/drivers/scsi/initio.c
@@ -2995,19 +2995,8 @@ static struct pci_driver initio_pci_driv
        .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);
_
--
To unsubscribe from this list: send the line "unsubscribe linux-scsi" in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to