aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDevendra Naga <devendra.aaru@gmail.com>2012-07-10 01:45:26 -0400
committerMauro Carvalho Chehab <mchehab@redhat.com>2012-07-30 20:28:09 -0400
commitb1f093ac6807a264100b24b1a4939cff6e35c144 (patch)
tree3c1e8515f2812ef4647d0fafd1fe02815efed7fe
parent1a3acd3d7f1f7ba1037cfd8c04a9159988f70079 (diff)
[media] staging/media/solo6x10: use module_pci_driver macro
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>
-rw-r--r--drivers/staging/media/solo6x10/core.c13
1 files changed, 1 insertions, 12 deletions
diff --git a/drivers/staging/media/solo6x10/core.c b/drivers/staging/media/solo6x10/core.c
index d2fd842e37cf..3ee9b125797f 100644
--- a/drivers/staging/media/solo6x10/core.c
+++ b/drivers/staging/media/solo6x10/core.c
@@ -318,15 +318,4 @@ static struct pci_driver solo_pci_driver = {
318 .remove = solo_pci_remove, 318 .remove = solo_pci_remove,
319}; 319};
320 320
321static int __init solo_module_init(void) 321module_pci_driver(solo_pci_driver);
322{
323 return pci_register_driver(&solo_pci_driver);
324}
325
326static void __exit solo_module_exit(void)
327{
328 pci_unregister_driver(&solo_pci_driver);
329}
330
331module_init(solo_module_init);
332module_exit(solo_module_exit);