[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>
Este cometimento está contido em:

cometido por
Mauro Carvalho Chehab

ascendente
d08876f524
cometimento
8ccd22db92
@@ -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);
|
||||
|
Criar uma nova questão referindo esta
Bloquear um utilizador