Linux kernel staging patches
 help / color / mirror / Atom feed
* [PATCH] staging: rtl8723bs: use module_sdio_driver macro
@ 2026-07-13  7:59 Arsenii Pashchenko
  0 siblings, 0 replies; only message in thread
From: Arsenii Pashchenko @ 2026-07-13  7:59 UTC (permalink / raw)
  To: gregkh; +Cc: linux-staging, linux-kernel, ulijg308

Use the module_sdio_driver() macro to eliminate boilerplate code
around SDIO driver registration and unregistration. This removes
the redundant rtw_drv_entry() and rtw_drv_halt() functions.

Signed-off-by: Arsenii Pashchenko <ulijg308@gmail.com>
---
 drivers/staging/rtl8723bs/os_dep/sdio_intf.c | 12 +-----------
 1 file changed, 1 insertion(+), 11 deletions(-)

diff --git a/drivers/staging/rtl8723bs/os_dep/sdio_intf.c b/drivers/staging/rtl8723bs/os_dep/sdio_intf.c
index c43a0391a..d2419c776 100644
--- a/drivers/staging/rtl8723bs/os_dep/sdio_intf.c
+++ b/drivers/staging/rtl8723bs/os_dep/sdio_intf.c
@@ -448,16 +448,6 @@ static int rtw_sdio_resume(struct device *dev)
 	return ret;
 }
 
-static int __init rtw_drv_entry(void)
-{
-	return sdio_register_driver(&rtl8723bs_sdio_driver);
-}
-module_init(rtw_drv_entry);
-
-static void __exit rtw_drv_halt(void)
-{
-	sdio_unregister_driver(&rtl8723bs_sdio_driver);
-}
-module_exit(rtw_drv_halt);
+module_sdio_driver(rtl8723bs_sdio_driver);
 
 MODULE_DESCRIPTION("Realtek RTL8723BS SDIO WiFi driver");
-- 
2.55.0


^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2026-07-13  7:59 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-07-13  7:59 [PATCH] staging: rtl8723bs: use module_sdio_driver macro Arsenii Pashchenko

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox