From: Russell King Date: Thu, 15 Oct 2015 16:15:24 +0000 (-0300) Subject: rc: allow rc modules to be loaded if rc-main is not a module X-Git-Tag: v3.2.77~85 X-Git-Url: https://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=a3277e201df72bbe0617e1b87ed7fa78361f6f88;p=pandora-kernel.git rc: allow rc modules to be loaded if rc-main is not a module 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 Signed-off-by: Mauro Carvalho Chehab Signed-off-by: Ben Hutchings --- diff --git a/drivers/media/rc/rc-main.c b/drivers/media/rc/rc-main.c index 2be51c890141..0a6ccebff2bf 100644 --- a/drivers/media/rc/rc-main.c +++ b/drivers/media/rc/rc-main.c @@ -54,7 +54,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(name); if (rc < 0) {