Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 1818681c authored by Wei Yongjun's avatar Wei Yongjun Committed by Ulf Hansson
Browse files

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: default avatarWei Yongjun <yongjun_wei@trendmicro.com.cn>
Signed-off-by: default avatarUlf Hansson <ulf.hansson@linaro.org>
parent 304f0a98
Loading
Loading
Loading
Loading
+1 −12
Original line number Original line Diff line number Diff line
@@ -699,18 +699,7 @@ static struct pci_driver toshsd_driver = {
	.driver.pm = &toshsd_pm_ops,
	.driver.pm = &toshsd_pm_ops,
};
};


static int __init toshsd_drv_init(void)
module_pci_driver(toshsd_driver);
{
	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_AUTHOR("Ondrej Zary, Richard Betts");
MODULE_AUTHOR("Ondrej Zary, Richard Betts");
MODULE_DESCRIPTION("Toshiba PCI Secure Digital Host Controller Interface driver");
MODULE_DESCRIPTION("Toshiba PCI Secure Digital Host Controller Interface driver");