mirror of
https://github.com/torvalds/linux.git
synced 2024-11-24 13:11:40 +00:00
[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:
parent
d08876f524
commit
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);
|
||||
|
Loading…
Reference in New Issue
Block a user