Skip to content

Commit

Permalink
[media] staging/media/solo6x10: use module_pci_driver macro
Browse files Browse the repository at this point in the history
the driver duplicates the module_pci_driver code,
how?
	module_pci_driver is used for those drivers whose
	init and exit paths does only register and unregister
	to pci API and nothing else.

so use the module_pci_driver macro instead

Signed-off-by: Devendra Naga <devendra.aaru@gmail.com>
Acked-by: Ismael Luceno <ismael.luceno@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 1a3acd3 commit b1f093a
Showing 1 changed file with 1 addition and 12 deletions.
13 changes: 1 addition & 12 deletions drivers/staging/media/solo6x10/core.c
Original file line number Diff line number Diff line change
Expand Up @@ -318,15 +318,4 @@ static struct pci_driver solo_pci_driver = {
.remove = solo_pci_remove,
};

static int __init solo_module_init(void)
{
return pci_register_driver(&solo_pci_driver);
}

static void __exit solo_module_exit(void)
{
pci_unregister_driver(&solo_pci_driver);
}

module_init(solo_module_init);
module_exit(solo_module_exit);
module_pci_driver(solo_pci_driver);

0 comments on commit b1f093a

Please sign in to comment.