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

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

the driver duplicates the module_pci_driver code,
how?
	module_pci_driver is used for those drivers whose
	init and exit paths does only register and unregister
	to pci API and nothing else.

so use the module_pci_driver macro instead
Signed-off-by: NDevendra Naga <devendra.aaru@gmail.com>
Acked-by: NIsmael Luceno <ismael.luceno@gmail.com>
Signed-off-by: NMauro Carvalho Chehab <mchehab@redhat.com>
上级 1a3acd3d
......@@ -318,15 +318,4 @@ static struct pci_driver solo_pci_driver = {
.remove = solo_pci_remove,
};
static int __init solo_module_init(void)
{
return pci_register_driver(&solo_pci_driver);
}
static void __exit solo_module_exit(void)
{
pci_unregister_driver(&solo_pci_driver);
}
module_init(solo_module_init);
module_exit(solo_module_exit);
module_pci_driver(solo_pci_driver);
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册