Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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>

authored by

Devendra Naga and committed by
Greg Kroah-Hartman
7e0b2cde d6ae0d57

+1 -13
+1 -13
drivers/misc/tifm_7xx1.c
··· 434 434 .resume = tifm_7xx1_resume, 435 435 }; 436 436 437 - static int __init tifm_7xx1_init(void) 438 - { 439 - return pci_register_driver(&tifm_7xx1_driver); 440 - } 441 - 442 - static void __exit tifm_7xx1_exit(void) 443 - { 444 - pci_unregister_driver(&tifm_7xx1_driver); 445 - } 446 - 437 + module_pci_driver(tifm_7xx1_driver); 447 438 MODULE_AUTHOR("Alex Dubov"); 448 439 MODULE_DESCRIPTION("TI FlashMedia host driver"); 449 440 MODULE_LICENSE("GPL"); 450 441 MODULE_DEVICE_TABLE(pci, tifm_7xx1_pci_tbl); 451 442 MODULE_VERSION(DRIVER_VERSION); 452 - 453 - module_init(tifm_7xx1_init); 454 - module_exit(tifm_7xx1_exit);