diff options
author | YueHaibing <yuehaibing@huawei.com> | 2018-03-29 19:43:11 +0800 |
---|---|---|
committer | Martin K. Petersen <martin.petersen@oracle.com> | 2018-04-20 19:40:11 -0400 |
commit | f9c25ccfc173dff6de4d68bd998e1a9fa93c5cab (patch) | |
tree | 8e2a31b100601f2fc7ece2fd570dcba0d3be5042 /drivers/scsi/mvumi.c | |
parent | 6a59fd776cf44201c5c2ea1a98756083ed331f60 (diff) | |
download | linux-f9c25ccfc173dff6de4d68bd998e1a9fa93c5cab.tar.bz2 |
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>
Diffstat (limited to 'drivers/scsi/mvumi.c')
-rw-r--r-- | drivers/scsi/mvumi.c | 20 |
1 files changed, 1 insertions, 19 deletions
diff --git a/drivers/scsi/mvumi.c b/drivers/scsi/mvumi.c index fe97401ad192..2e6fd864723b 100644 --- a/drivers/scsi/mvumi.c +++ b/drivers/scsi/mvumi.c @@ -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); |