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)
committerBen Hutchings <ben@decadent.org.uk>
Sat, 13 Feb 2016 10:34:03 +0000 (10:34 +0000)
commita3277e201df72bbe0617e1b87ed7fa78361f6f88
tree08bf3594928b67243e54c1119831cec9a062ba6b
parent5f18d55c3a82551ad1ec50a2c1668e475a5f3f00
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 <rmk+kernel@arm.linux.org.uk>
Signed-off-by: Mauro Carvalho Chehab <mchehab@osg.samsung.com>
Signed-off-by: Ben Hutchings <ben@decadent.org.uk>
drivers/media/rc/rc-main.c