Commit 8ab10f75 authored by Wei Yongjun's avatar Wei Yongjun Committed by Roland Dreier

RDMA/amso1100: Use module_pci_driver() to simplify the code

Use the module_pci_driver() macro to make the code simpler by
eliminating module_init and module_exit calls.

dpatch engine is used to auto generate this patch.
(https://github.com/weiyj/dpatch)
Signed-off-by: default avatarWei Yongjun <yongjun_wei@trendmicro.com.cn>
Reviewed-by: default avatarSteve WIse <swise@opengridcomputing.com>
Signed-off-by: default avatarRoland Dreier <roland@purestorage.com>
parent 836dc9e3
...@@ -1238,15 +1238,4 @@ static struct pci_driver c2_pci_driver = { ...@@ -1238,15 +1238,4 @@ static struct pci_driver c2_pci_driver = {
.remove = c2_remove, .remove = c2_remove,
}; };
static int __init c2_init_module(void) module_pci_driver(c2_pci_driver);
{
return pci_register_driver(&c2_pci_driver);
}
static void __exit c2_exit_module(void)
{
pci_unregister_driver(&c2_pci_driver);
}
module_init(c2_init_module);
module_exit(c2_exit_module);
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