]> git.baikalelectronics.ru Git - kernel.git/commit
[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)
committerMauro Carvalho Chehab <mchehab@osg.samsung.com>
Thu, 19 Nov 2015 10:41:06 +0000 (08:41 -0200)
commitf7c35150b8ecde537baa0e750261aa3450dfd787
tree90b8081aae748b3c8c4a41a1117efe61dc5b3b29
parent066573cc58b9e45a960b311d669c88690555b537
[media] rc: allow rc modules to be loaded if rc-main is not a module

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: 74890b2b35b2 ("[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>
drivers/media/rc/rc-main.c