staging/media/solo6x10: use module_pci_driver macro
Subsystems (2)
PATCH 5/6 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
--- drivers/staging/media/solo6x10/core.c | 13 +------------ 1 file changed, 1 insertion(+), 12 deletions(-)
drivers/staging/media/solo6x10/core.c +1 -12
@@ -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);
Signature · 1 line
1.7.9.5
Hi Devendra,
Thanks for the patch.
Quoted 37 lines · Devendra Naga
the driver duplicates the
module_pci_drivercode, how?
module_pci_driveris 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_drivermacro insteadSigned-off-by Devendra Naga <[email protected]>--- drivers/staging/media/solo6x10/core.c | 13 +------------ 1 file changed, 1 insertion(+), 12 deletions(-)drivers/staging/media/solo6x10/core.c +1
-13@@ -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); --1.7.9.5
Quoted 4 lines
--
To unsubscribe from this list: send the line "unsubscribe linux-media" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html
Since this driver belongs to staging/media you should not send this to staging but to linux-media mailing list.
Also, the maintainer is Mauro, so it's not necessary to add Greg in Cc.
Also, I'm Ccing Ismael Luceno who seems to be currently working for bluecherry.
Ismael: Is it possible for you to test and/or ack this patch?
Thanks,
Ezequiel.
Quoted 24 lines · Devendra Naga
the driver duplicates the
module_pci_drivercode, how?
module_pci_driveris 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_drivermacro insteadSigned-off-by Devendra Naga <[email protected]>--- drivers/staging/media/solo6x10/core.c | 13 +------------ 1 file changed, 1 insertion(+), 12 deletions(-)drivers/staging/media/solo6x10/core.c +0
-3@@ -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);
drivers/staging/media/solo6x10/core.c static struct pci_driver solo_pci_driver = { · line 321
Quoted 10 lines
drivers/staging/media/solo6x10/core.c +1
-9-} - -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);