The patch titled Subject: drivers/scsi/ufs: use module_pci_driver has been added to the -mm tree. Its filename is drivers-scsi-ufs-use-module_pci_driver.patch Before you just go and hit "reply", please: a) Consider who else should be cc'ed b) Prefer to cc a suitable mailing list as well c) Ideally: find the original patch on the mailing list and do a reply-to-all to that, adding suitable additional cc's *** Remember to use Documentation/SubmitChecklist when testing your code *** The -mm tree is included into linux-next and is updated there every 3-4 working days ------------------------------------------------------ From: Venkatraman S <svenkatr@xxxxxx> Subject: drivers/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 <svenkatr@xxxxxx> Cc: Santosh Yaraganavi <santoshsy@xxxxxxxxx> Cc: "James E.J. Bottomley" <JBottomley@xxxxxxxxxxxxx> Signed-off-by: Andrew Morton <akpm@xxxxxxxxxxxxxxxxxxxx> --- drivers/scsi/ufs/ufshcd.c | 19 +------------------ 1 file changed, 1 insertion(+), 18 deletions(-) diff -puN drivers/scsi/ufs/ufshcd.c~drivers-scsi-ufs-use-module_pci_driver drivers/scsi/ufs/ufshcd.c --- a/drivers/scsi/ufs/ufshcd.c~drivers-scsi-ufs-use-module_pci_driver +++ a/drivers/scsi/ufs/ufshcd.c @@ -1952,24 +1952,7 @@ static struct pci_driver ufshcd_pci_driv #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 <santosh.sy@xxxxxxxxxxx>, " "Vinayak Holikatti <h.vinayak@xxxxxxxxxxx>"); _ Subject: Subject: drivers/scsi/ufs: use module_pci_driver Patches currently in -mm which might be from svenkatr@xxxxxx are linux-next.patch drivers-scsi-ufs-use-module_pci_driver.patch -- To unsubscribe from this list: send the line "unsubscribe mm-commits" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html