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

mmc: toshsd: use module_pci_driver to simplify the code

Use the module_pci_driver() macro to make the code simpler
by eliminating module_init and module_exit calls.

Signed-off-by: Wei Yongjun <yongjun_wei@trendmicro.com.cn>
Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>

authored by

Wei Yongjun and committed by
Ulf Hansson
1818681c 304f0a98

+1 -12
+1 -12
drivers/mmc/host/toshsd.c
··· 699 699 .driver.pm = &toshsd_pm_ops, 700 700 }; 701 701 702 - static int __init toshsd_drv_init(void) 703 - { 704 - return pci_register_driver(&toshsd_driver); 705 - } 706 - 707 - static void __exit toshsd_drv_exit(void) 708 - { 709 - pci_unregister_driver(&toshsd_driver); 710 - } 711 - 712 - module_init(toshsd_drv_init); 713 - module_exit(toshsd_drv_exit); 702 + module_pci_driver(toshsd_driver); 714 703 715 704 MODULE_AUTHOR("Ondrej Zary, Richard Betts"); 716 705 MODULE_DESCRIPTION("Toshiba PCI Secure Digital Host Controller Interface driver");