mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2025-01-01 10:45:49 +00:00
scsi: mvumi: Using module_pci_driver
Remove boilerplate code by using macro module_pci_driver. Signed-off-by: YueHaibing <yuehaibing@huawei.com> Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
This commit is contained in:
parent
6a59fd776c
commit
f9c25ccfc1
@ -2693,22 +2693,4 @@ static struct pci_driver mvumi_pci_driver = {
|
||||
#endif
|
||||
};
|
||||
|
||||
/**
|
||||
* 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);
|
||||
module_pci_driver(mvumi_pci_driver);
|
||||
|
Loading…
Reference in New Issue
Block a user