Skip to content

Commit

Permalink
[media] staging/media/dt3155v4l: use module_pci_driver macro
Browse files Browse the repository at this point in the history
the driver duplicates the module_pci_driver code,
remove the duplicate code and use the module_pci_driver macro.

Signed-off-by: Devendra Naga <devendra.aaru@gmail.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
  • Loading branch information
Devendra Naga authored and Mauro Carvalho Chehab committed Jul 31, 2012
1 parent cadc792 commit 1a3acd3
Showing 1 changed file with 1 addition and 14 deletions.
15 changes: 1 addition & 14 deletions drivers/staging/media/dt3155v4l/dt3155v4l.c
Original file line number Diff line number Diff line change
Expand Up @@ -971,20 +971,7 @@ static struct pci_driver pci_driver = {
.remove = __devexit_p(dt3155_remove),
};

static int __init
dt3155_init_module(void)
{
return pci_register_driver(&pci_driver);
}

static void __exit
dt3155_exit_module(void)
{
pci_unregister_driver(&pci_driver);
}

module_init(dt3155_init_module);
module_exit(dt3155_exit_module);
module_pci_driver(pci_driver);

MODULE_DESCRIPTION("video4linux pci-driver for dt3155 frame grabber");
MODULE_AUTHOR("Marin Mitov <mitov@issp.bas.bg>");
Expand Down

0 comments on commit 1a3acd3

Please sign in to comment.