Skip to content

Commit

Permalink
[media] netup_unidvb: use module_pci_driver
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Geliang Tang authored and Mauro Carvalho Chehab committed Nov 22, 2016
1 parent d08876f commit 8ccd22d
Showing 1 changed file with 1 addition and 12 deletions.
13 changes: 1 addition & 12 deletions drivers/media/pci/netup_unidvb/netup_unidvb_core.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);

0 comments on commit 8ccd22d

Please sign in to comment.