[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@ti.com> Acked-by: Santosh Y <santoshsy@gmail.com> Signed-off-by: James Bottomley <JBottomley@Parallels.com>
This commit is contained in:
parent
3bd4dc9bdd
commit
17ccafc4ef
|
@ -1953,24 +1953,7 @@ static struct pci_driver ufshcd_pci_driver = {
|
||||||
#endif
|
#endif
|
||||||
};
|
};
|
||||||
|
|
||||||
/**
|
module_pci_driver(ufshcd_pci_driver);
|
||||||
* 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_AUTHOR("Santosh Yaragnavi <santosh.sy@samsung.com>, "
|
MODULE_AUTHOR("Santosh Yaragnavi <santosh.sy@samsung.com>, "
|
||||||
"Vinayak Holikatti <h.vinayak@samsung.com>");
|
"Vinayak Holikatti <h.vinayak@samsung.com>");
|
||||||
|
|
Loading…
Reference in New Issue