Commit 8ccd22db authored by Geliang Tang's avatar Geliang Tang Committed by Mauro Carvalho Chehab

[media] netup_unidvb: use module_pci_driver

Use module_pci_driver() helper to simplify the code.
Signed-off-by: default avatarGeliang Tang <geliangtang@gmail.com>
Signed-off-by: default avatarMauro Carvalho Chehab <mchehab@s-opensource.com>
parent d08876f5
......@@ -1030,15 +1030,4 @@ static struct pci_driver netup_unidvb_pci_driver = {
.resume = NULL,
};
static int __init netup_unidvb_init(void)
{
return pci_register_driver(&netup_unidvb_pci_driver);
}
static void __exit netup_unidvb_fini(void)
{
pci_unregister_driver(&netup_unidvb_pci_driver);
}
module_init(netup_unidvb_init);
module_exit(netup_unidvb_fini);
module_pci_driver(netup_unidvb_pci_driver);
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