提交 ae647589 编写于 作者: L Libo Chen 提交者: Greg Kroah-Hartman

drivers/pcmcia/pd6729.c: convert to module_pci_driver

Use module_pci_driver instead of init/exit, make code clean.
Signed-off-by: NLibo Chen <libo.chen@huawei.com>
Cc: Bill Pemberton <wfp5p@virginia.edu>
Cc: Eric Miao <eric.y.miao@gmail.com>
Cc: Dominik Brodowski <linux@dominikbrodowski.net>
Signed-off-by: NAndrew Morton <akpm@linux-foundation.org>
Signed-off-by: NGreg Kroah-Hartman <gregkh@linuxfoundation.org>
上级 31734634
......@@ -777,15 +777,4 @@ static struct pci_driver pd6729_pci_driver = {
.remove = pd6729_pci_remove,
};
static int pd6729_module_init(void)
{
return pci_register_driver(&pd6729_pci_driver);
}
static void pd6729_module_exit(void)
{
pci_unregister_driver(&pd6729_pci_driver);
}
module_init(pd6729_module_init);
module_exit(pd6729_module_exit);
module_pci_driver(pd6729_pci_driver);
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册