From: Venkatraman S Date: Tue, 10 Jul 2012 14:09:22 +0000 (+0530) Subject: [SCSI] ufs: use module_pci_driver X-Git-Tag: firefly_0821_release~3680^2~2359^2~14 X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=17ccafc4ef00716d022cac9ff64cef0aafe7c02a;p=firefly-linux-kernel-4.4.55.git [SCSI] ufs: use module_pci_driver Use macro module_pci_driver and get rid of boilerplate code. No functional changes. Signed-off-by: Venkatraman S Acked-by: Santosh Y Signed-off-by: James Bottomley --- diff --git a/drivers/scsi/ufs/ufshcd.c b/drivers/scsi/ufs/ufshcd.c index 6a4fd00117ca..40c43bfce681 100644 --- a/drivers/scsi/ufs/ufshcd.c +++ b/drivers/scsi/ufs/ufshcd.c @@ -1953,24 +1953,7 @@ static struct pci_driver ufshcd_pci_driver = { #endif }; -/** - * ufshcd_init - Driver registration routine - */ -static int __init ufshcd_init(void) -{ - return pci_register_driver(&ufshcd_pci_driver); -} -module_init(ufshcd_init); - -/** - * ufshcd_exit - Driver exit clean-up routine - */ -static void __exit ufshcd_exit(void) -{ - pci_unregister_driver(&ufshcd_pci_driver); -} -module_exit(ufshcd_exit); - +module_pci_driver(ufshcd_pci_driver); MODULE_AUTHOR("Santosh Yaragnavi , " "Vinayak Holikatti ");