From: Libo Chen Date: Wed, 19 Jun 2013 00:05:42 +0000 (+1000) Subject: drivers/scsi/initio.c: convert to module_pci_driver X-Git-Tag: next-20130619~2^2~589 X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=e42e5f8ea678f0dc46aa314e63a4e99aa46ef1e5;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);