summaryrefslogtreecommitdiffstats
path: root/drivers/scsi/mvumi.c
diff options
context:
space:
mode:
authorYueHaibing <yuehaibing@huawei.com>2018-03-29 13:43:11 +0200
committerMartin K. Petersen <martin.petersen@oracle.com>2018-04-21 01:40:11 +0200
commitf9c25ccfc173dff6de4d68bd998e1a9fa93c5cab (patch)
tree8e2a31b100601f2fc7ece2fd570dcba0d3be5042 /drivers/scsi/mvumi.c
parentscsi: target: add driver-api document (diff)
downloadlinux-f9c25ccfc173dff6de4d68bd998e1a9fa93c5cab.tar.xz
linux-f9c25ccfc173dff6de4d68bd998e1a9fa93c5cab.zip
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.c20
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);