mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-08-24 09:50:04 +00:00
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>
This commit is contained in:
parent
304f0a98d1
commit
1818681cda
1 changed files with 1 additions and 12 deletions
|
@ -699,18 +699,7 @@ static struct pci_driver toshsd_driver = {
|
|||
.driver.pm = &toshsd_pm_ops,
|
||||
};
|
||||
|
||||
static int __init toshsd_drv_init(void)
|
||||
{
|
||||
return pci_register_driver(&toshsd_driver);
|
||||
}
|
||||
|
||||
static void __exit toshsd_drv_exit(void)
|
||||
{
|
||||
pci_unregister_driver(&toshsd_driver);
|
||||
}
|
||||
|
||||
module_init(toshsd_drv_init);
|
||||
module_exit(toshsd_drv_exit);
|
||||
module_pci_driver(toshsd_driver);
|
||||
|
||||
MODULE_AUTHOR("Ondrej Zary, Richard Betts");
|
||||
MODULE_DESCRIPTION("Toshiba PCI Secure Digital Host Controller Interface driver");
|
||||
|
|
Loading…
Reference in a new issue