提交 1a3acd3d 编写于 作者: D Devendra Naga 提交者: Mauro Carvalho Chehab

[media] staging/media/dt3155v4l: use module_pci_driver macro

the driver duplicates the module_pci_driver code,
remove the duplicate code and use the module_pci_driver macro.
Signed-off-by: NDevendra Naga <devendra.aaru@gmail.com>
Signed-off-by: NMauro Carvalho Chehab <mchehab@redhat.com>
上级 cadc7920
......@@ -971,20 +971,7 @@ static struct pci_driver pci_driver = {
.remove = __devexit_p(dt3155_remove),
};
static int __init
dt3155_init_module(void)
{
return pci_register_driver(&pci_driver);
}
static void __exit
dt3155_exit_module(void)
{
pci_unregister_driver(&pci_driver);
}
module_init(dt3155_init_module);
module_exit(dt3155_exit_module);
module_pci_driver(pci_driver);
MODULE_DESCRIPTION("video4linux pci-driver for dt3155 frame grabber");
MODULE_AUTHOR("Marin Mitov <mitov@issp.bas.bg>");
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册