[<prev] [next>] [day] [month] [year] [list]
Message-Id: <1448288478-23042-1-git-send-email-sjoerd.simons@collabora.co.uk>
Date: Mon, 23 Nov 2015 15:21:18 +0100
From: Sjoerd Simons <sjoerd.simons@...labora.co.uk>
To: linux-media@...r.kernel.org
Cc: Antti Seppälä <a.seppala@...il.com>,
Mauro Carvalho Chehab <mchehab@....samsung.com>,
linux-kernel@...r.kernel.org, James Hogan <james@...anarts.com>,
David Härdeman <david@...deman.nu>,
Markus Elfring <elfring@...rs.sourceforge.net>
Subject: [PATCH] [media] rc-core: Try loading modules if the kernel supports them
Always try to load modules for RC keymaps when the kernel supports
modules, not just when the RC Core is build as a module. Fixes
module autoloading issues when the core is builtin but the keymaps
are not.
Signed-off-by: Sjoerd Simons <sjoerd.simons@...labora.co.uk>
---
drivers/media/rc/rc-main.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/media/rc/rc-main.c b/drivers/media/rc/rc-main.c
index 3f0f71a..ea1008c 100644
--- a/drivers/media/rc/rc-main.c
+++ b/drivers/media/rc/rc-main.c
@@ -61,7 +61,7 @@ struct rc_map *rc_map_get(const char *name)
struct rc_map_list *map;
map = seek_rc_map(name);
-#ifdef MODULE
+#ifdef CONFIG_MODULES
if (!map) {
int rc = request_module("%s", name);
if (rc < 0) {
--
2.6.2
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists