]> git.ipfire.org Git - thirdparty/kernel/stable.git/commitdiff
[media] rc: allow rc modules to be loaded if rc-main is not a module
authorRussell King <rmk+kernel@arm.linux.org.uk>
Thu, 15 Oct 2015 16:15:24 +0000 (13:15 -0300)
committerLuis Henriques <luis.henriques@canonical.com>
Tue, 2 Feb 2016 19:10:10 +0000 (19:10 +0000)
commit 2ff56fadd94cdaeeaeccbc0a9b703a0101ada128 upstream.

rc-main mistakenly uses #ifdef MODULE to determine whether it should
load the rc keymap modules.  This symbol is only defined if rc-main
is being built as a module itself, and bears no relation to whether
the rc keymaps are modules.

Fix this to use CONFIG_MODULES instead.

Fixes: 631493ecacd8 ("[media] rc-core: merge rc-map.c into rc-main.c")
Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
Signed-off-by: Mauro Carvalho Chehab <mchehab@osg.samsung.com>
Signed-off-by: Luis Henriques <luis.henriques@canonical.com>
drivers/media/rc/rc-main.c

index af56ea915bad9b5d0b510a85cc660ba74540ee55..c5a64a111284b24c5873be6f80d7e198dc5c9a7d 100644 (file)
@@ -60,7 +60,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) {