public inbox for linux-bluetooth@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH] bluetooth: btrsi: remove unnecessary module_init/exit functions
@ 2026-01-31  2:00 Ethan Nelson-Moore
  2026-01-31  3:57 ` bluez.test.bot
  0 siblings, 1 reply; 2+ messages in thread
From: Ethan Nelson-Moore @ 2026-01-31  2:00 UTC (permalink / raw)
  To: linux-bluetooth
  Cc: Ethan Nelson-Moore, Marcel Holtmann, Luiz Augusto von Dentz

The btrsi driver has unnecessary empty module_init and
module_exit functions. Remove them. Note that if a module_init function
exists, a module_exit function must also exist; otherwise, the module
cannot be unloaded.

Signed-off-by: Ethan Nelson-Moore <enelsonmoore@gmail.com>
---
 drivers/bluetooth/btrsi.c | 12 ------------
 1 file changed, 12 deletions(-)

diff --git a/drivers/bluetooth/btrsi.c b/drivers/bluetooth/btrsi.c
index 6c1f584c8a33..527a95d943ad 100644
--- a/drivers/bluetooth/btrsi.c
+++ b/drivers/bluetooth/btrsi.c
@@ -178,18 +178,6 @@ const struct rsi_mod_ops rsi_bt_ops = {
 };
 EXPORT_SYMBOL(rsi_bt_ops);
 
-static int rsi_91x_bt_module_init(void)
-{
-	return 0;
-}
-
-static void rsi_91x_bt_module_exit(void)
-{
-	return;
-}
-
-module_init(rsi_91x_bt_module_init);
-module_exit(rsi_91x_bt_module_exit);
 MODULE_AUTHOR("Redpine Signals Inc");
 MODULE_DESCRIPTION("RSI BT driver");
 MODULE_LICENSE("Dual BSD/GPL");
-- 
2.43.0


^ permalink raw reply related	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2026-01-31  3:57 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-01-31  2:00 [PATCH] bluetooth: btrsi: remove unnecessary module_init/exit functions Ethan Nelson-Moore
2026-01-31  3:57 ` bluez.test.bot

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