提交 06333e0a 编写于 作者: S Sachin Kamat 提交者: Mauro Carvalho Chehab

[media] pci: cx88-video: Use module_pci_driver

module_pci_driver removes some boilerplate and makes code simpler.
Signed-off-by: NSachin Kamat <sachin.kamat@linaro.org>
Signed-off-by: NHans Verkuil <hans.verkuil@cisco.com>
Signed-off-by: NMauro Carvalho Chehab <m.chehab@samsung.com>
上级 38b25adc
...@@ -2039,17 +2039,4 @@ static struct pci_driver cx8800_pci_driver = { ...@@ -2039,17 +2039,4 @@ static struct pci_driver cx8800_pci_driver = {
#endif #endif
}; };
static int __init cx8800_init(void) module_pci_driver(cx8800_pci_driver);
{
printk(KERN_INFO "cx88/0: cx2388x v4l2 driver version %s loaded\n",
CX88_VERSION);
return pci_register_driver(&cx8800_pci_driver);
}
static void __exit cx8800_fini(void)
{
pci_unregister_driver(&cx8800_pci_driver);
}
module_init(cx8800_init);
module_exit(cx8800_fini);
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册