From 85130b5e70d78b18ff39aa26a6b99c73bf3e507d Mon Sep 17 00:00:00 2001 From: Libo Chen Date: Fri, 28 Jun 2013 09:51:11 +1000 Subject: [PATCH] drivers/scsi/initio.c: convert to module_pci_driver Signed-off-by: Libo Chen Cc: James Bottomley Signed-off-by: Andrew Morton --- drivers/scsi/initio.c | 13 +------------ 1 file changed, 1 insertion(+), 12 deletions(-) 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); -- 2.39.5