Commit ca63c6e4 authored by Russell King's avatar Russell King Committed by Luis Henriques

[media] rc: allow rc modules to be loaded if rc-main is not a module

commit 2ff56fad 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: 631493ec ("[media] rc-core: merge rc-map.c into rc-main.c")
Signed-off-by: default avatarRussell King <rmk+kernel@arm.linux.org.uk>
Signed-off-by: default avatarMauro Carvalho Chehab <mchehab@osg.samsung.com>
Signed-off-by: default avatarLuis Henriques <luis.henriques@canonical.com>
parent dd004fc2
...@@ -60,7 +60,7 @@ struct rc_map *rc_map_get(const char *name) ...@@ -60,7 +60,7 @@ struct rc_map *rc_map_get(const char *name)
struct rc_map_list *map; struct rc_map_list *map;
map = seek_rc_map(name); map = seek_rc_map(name);
#ifdef MODULE #ifdef CONFIG_MODULES
if (!map) { if (!map) {
int rc = request_module("%s", name); int rc = request_module("%s", name);
if (rc < 0) { if (rc < 0) {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment