mirror of
https://github.com/torvalds/linux.git
synced 2026-05-31 10:33:41 +02:00
wifi: wlcore: sdio: Use module_sdio_driver macro to simplify the code
Use the module_sdio_driver macro to simplify the code, which is the same as declaring with module_init() and module_exit(). Signed-off-by: Li Zetao <lizetao1@huawei.com> Signed-off-by: Kalle Valo <kvalo@kernel.org> Link: https://lore.kernel.org/r/20230821140345.3140493-1-lizetao1@huawei.com
This commit is contained in:
parent
4843aa3768
commit
98fdd77d3d
|
|
@ -442,18 +442,7 @@ static struct sdio_driver wl1271_sdio_driver = {
|
|||
#endif
|
||||
};
|
||||
|
||||
static int __init wl1271_init(void)
|
||||
{
|
||||
return sdio_register_driver(&wl1271_sdio_driver);
|
||||
}
|
||||
|
||||
static void __exit wl1271_exit(void)
|
||||
{
|
||||
sdio_unregister_driver(&wl1271_sdio_driver);
|
||||
}
|
||||
|
||||
module_init(wl1271_init);
|
||||
module_exit(wl1271_exit);
|
||||
module_sdio_driver(wl1271_sdio_driver);
|
||||
|
||||
module_param(dump, bool, 0600);
|
||||
MODULE_PARM_DESC(dump, "Enable sdio read/write dumps.");
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user