From: Sean Young <sean@mess.org>
To: linux-media@vger.kernel.org, Sean Young <sean@mess.org>,
Mauro Carvalho Chehab <mchehab@kernel.org>
Cc: linux-kernel@vger.kernel.org
Subject: [PATCH 1/5] media: rc: Remove pointless msleep() after request_module()
Date: Sun, 25 Oct 2026 18:13:41 +0000 [thread overview]
Message-ID: <bb325a849f8319f3851e9ded7a03331a957ca8a5.1792951808.git.sean@mess.org> (raw)
In-Reply-To: <cover.1792951808.git.sean@mess.org>
request_module() already guarantees that the module_init() function
of the module has been run.
Signed-off-by: Sean Young <sean@mess.org>
---
drivers/media/rc/rc-main.c | 4 ----
1 file changed, 4 deletions(-)
diff --git a/drivers/media/rc/rc-main.c b/drivers/media/rc/rc-main.c
index a867bf9e8416..f8cc7e4a3d95 100644
--- a/drivers/media/rc/rc-main.c
+++ b/drivers/media/rc/rc-main.c
@@ -8,7 +8,6 @@
#include <media/rc-core.h>
#include <linux/bsearch.h>
#include <linux/spinlock.h>
-#include <linux/delay.h>
#include <linux/input.h>
#include <linux/leds.h>
#include <linux/slab.h>
@@ -114,8 +113,6 @@ struct rc_map *rc_map_get(const char *name)
pr_err("Couldn't load IR keymap %s\n", name);
return NULL;
}
- msleep(20); /* Give some time for IR to register */
-
map = seek_rc_map(name);
}
#endif
@@ -1278,7 +1275,6 @@ void ir_raw_load_modules(u64 *protocols)
*protocols &= ~proto_names[i].type;
continue;
}
- msleep(20);
available = ir_raw_get_allowed_protocols();
if (!(*protocols & proto_names[i].type & ~available))
continue;
--
2.56.0
next parent reply other threads:[~2026-10-25 18:14 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <cover.1792951808.git.sean@mess.org>
2026-10-25 18:13 ` Sean Young [this message]
2026-10-25 18:13 ` [PATCH 2/5] media: rc: Prevent overflow in ir_raw_event_store_edge() Sean Young
2026-10-25 18:13 ` [PATCH 3/5] media: rc: Do not touch rx state when unregistering a tx-only device Sean Young
2026-10-25 18:13 ` [PATCH 4/5] media: imon: Replace pr_err() with dev_err() and friends Sean Young
2026-10-25 18:13 ` [PATCH 5/5] media: rc: struct rc_map should have entries and capacity Sean Young
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=bb325a849f8319f3851e9ded7a03331a957ca8a5.1792951808.git.sean@mess.org \
--to=sean@mess.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-media@vger.kernel.org \
--cc=mchehab@kernel.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
all inboxes | Powered by JetHome®