[media] netup_unidvb: use module_pci_driver

Use module_pci_driver() helper to simplify the code.

Signed-off-by: Geliang Tang <geliangtang@gmail.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@s-opensource.com>
This commit is contained in:
Geliang Tang 2016-11-16 11:00:56 -02:00 committed by Mauro Carvalho Chehab
parent d08876f524
commit 8ccd22db92

View file

@ -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);