From: Ethan Nelson-Moore <enelsonmoore@gmail.com>
To: linux-bluetooth@vger.kernel.org
Cc: Ethan Nelson-Moore <enelsonmoore@gmail.com>,
Marcel Holtmann <marcel@holtmann.org>,
Luiz Augusto von Dentz <luiz.dentz@gmail.com>
Subject: [PATCH] bluetooth: btrsi: remove unnecessary module_init/exit functions
Date: Fri, 30 Jan 2026 18:00:31 -0800 [thread overview]
Message-ID: <20260131020032.45838-1-enelsonmoore@gmail.com> (raw)
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
next reply other threads:[~2026-01-31 2:00 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-01-31 2:00 Ethan Nelson-Moore [this message]
2026-01-31 3:57 ` bluetooth: btrsi: remove unnecessary module_init/exit functions bluez.test.bot
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20260131020032.45838-1-enelsonmoore@gmail.com \
--to=enelsonmoore@gmail.com \
--cc=linux-bluetooth@vger.kernel.org \
--cc=luiz.dentz@gmail.com \
--cc=marcel@holtmann.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox