projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
6a59fd7
)
scsi: mvumi: Using module_pci_driver
author
YueHaibing
<
[email protected]
>
Thu, 29 Mar 2018 11:43:11 +0000
(19:43 +0800)
committer
Martin K. Petersen
<
[email protected]
>
Fri, 20 Apr 2018 23:40:11 +0000
(19:40 -0400)
Remove boilerplate code by using macro module_pci_driver.
Signed-off-by: YueHaibing <
[email protected]
>
Signed-off-by: Martin K. Petersen <
[email protected]
>
drivers/scsi/mvumi.c
patch
|
blob
|
history
diff --git
a/drivers/scsi/mvumi.c
b/drivers/scsi/mvumi.c
index fe97401ad1927b9a0edc7de7afbdbe2007d80a4f..2e6fd864723b185cd0f540512c33d0f34af19013 100644
(file)
--- 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);