aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/misc
diff options
context:
space:
mode:
authorDevendra Naga <devendra.aaru@gmail.com>2012-08-26 05:02:43 -0400
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2012-09-05 17:10:29 -0400
commit7e0b2cde502a7ea471ae7202ad88efdd7eaf3dbd (patch)
tree282f2d8933419082e1c3e3d38fbaba336c5a7ce3 /drivers/misc
parentd6ae0d578d24303941c1424b049d2cae28277666 (diff)
tifm: use module_pci_driver
tifm_7xx1_init and tifm_7xx1_exit with module_init and module_exit calls can be replaced with the module_pci_driver call, as they are similar to what module_pci_driver does Signed-off-by: Devendra Naga <devendra.aaru@gmail.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/misc')
-rw-r--r--drivers/misc/tifm_7xx1.c14
1 files changed, 1 insertions, 13 deletions
diff --git a/drivers/misc/tifm_7xx1.c b/drivers/misc/tifm_7xx1.c
index ba247902267..f8d6654391e 100644
--- a/drivers/misc/tifm_7xx1.c
+++ b/drivers/misc/tifm_7xx1.c
@@ -434,21 +434,9 @@ static struct pci_driver tifm_7xx1_driver = {
434 .resume = tifm_7xx1_resume, 434 .resume = tifm_7xx1_resume,
435}; 435};
436 436
437static int __init tifm_7xx1_init(void) 437module_pci_driver(tifm_7xx1_driver);
438{
439 return pci_register_driver(&tifm_7xx1_driver);
440}
441
442static void __exit tifm_7xx1_exit(void)
443{
444 pci_unregister_driver(&tifm_7xx1_driver);
445}
446
447MODULE_AUTHOR("Alex Dubov"); 438MODULE_AUTHOR("Alex Dubov");
448MODULE_DESCRIPTION("TI FlashMedia host driver"); 439MODULE_DESCRIPTION("TI FlashMedia host driver");
449MODULE_LICENSE("GPL"); 440MODULE_LICENSE("GPL");
450MODULE_DEVICE_TABLE(pci, tifm_7xx1_pci_tbl); 441MODULE_DEVICE_TABLE(pci, tifm_7xx1_pci_tbl);
451MODULE_VERSION(DRIVER_VERSION); 442MODULE_VERSION(DRIVER_VERSION);
452
453module_init(tifm_7xx1_init);
454module_exit(tifm_7xx1_exit);