Commit f9c25ccf authored by YueHaibing's avatar YueHaibing Committed by Martin K. Petersen

scsi: mvumi: Using module_pci_driver

Remove boilerplate code by using macro module_pci_driver.
Signed-off-by: default avatarYueHaibing <yuehaibing@huawei.com>
Signed-off-by: default avatarMartin K. Petersen <martin.petersen@oracle.com>
parent 6a59fd77
...@@ -2693,22 +2693,4 @@ static struct pci_driver mvumi_pci_driver = { ...@@ -2693,22 +2693,4 @@ static struct pci_driver mvumi_pci_driver = {
#endif #endif
}; };
/** module_pci_driver(mvumi_pci_driver);
* mvumi_init - Driver load entry point
*/
static int __init mvumi_init(void)
{
return pci_register_driver(&mvumi_pci_driver);
}
/**
* mvumi_exit - Driver unload entry point
*/
static void __exit mvumi_exit(void)
{
pci_unregister_driver(&mvumi_pci_driver);
}
module_init(mvumi_init);
module_exit(mvumi_exit);
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment