From: Libo Chen Date: Thu, 18 Jul 2013 23:56:38 +0000 (+1000) Subject: drivers/scsi/initio.c: convert to module_pci_driver X-Git-Tag: next-20130719~3^2~61 X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=9845573ad9eea3a07ffae60e0c8e6850d0fa3b7d;p=karo-tx-linux.git drivers/scsi/initio.c: convert to module_pci_driver Signed-off-by: Libo Chen Cc: James Bottomley Signed-off-by: Andrew Morton --- diff --git a/drivers/scsi/initio.c b/drivers/scsi/initio.c index 280d5af113d1..1befc26fd95e 100644 --- a/drivers/scsi/initio.c +++ b/drivers/scsi/initio.c @@ -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);