mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-31 04:01:48 -04:00
media: seco-cec: fix building with RC_CORE=m
I previously added an RC_CORE dependency here, but missed the corner
case of CONFIG_VIDEO_SECO_CEC=y with CONFIG_RC_CORE=m, which still
causes a link error:
drivers/media/platform/seco-cec/seco-cec.o: In function `secocec_probe':
seco-cec.c:(.text+0x1b8): undefined reference to `devm_rc_allocate_device'
seco-cec.c:(.text+0x2e8): undefined reference to `devm_rc_register_device'
drivers/media/platform/seco-cec/seco-cec.o: In function `secocec_irq_handler':
seco-cec.c:(.text+0xa2c): undefined reference to `rc_keydown'
Refine the dependency to disallow building the RC subdriver in this case.
This is the same logic we apply in other drivers like it.
Fixes: f27dd0ad68 ("media: seco-cec: fix RC_CORE dependency")
Cc: <[email protected]> # 5.1
Signed-off-by: Arnd Bergmann <[email protected]>
Signed-off-by: Sean Young <[email protected]>
Signed-off-by: Mauro Carvalho Chehab <[email protected]>
This commit is contained in:
parent
37d1e62b5b
commit
63604a143f
1 changed files with 1 additions and 1 deletions
|
|
@ -649,7 +649,7 @@ config VIDEO_SECO_CEC
|
|||
config VIDEO_SECO_RC
|
||||
bool "SECO Boards IR RC5 support"
|
||||
depends on VIDEO_SECO_CEC
|
||||
depends on RC_CORE
|
||||
depends on RC_CORE=y || RC_CORE = VIDEO_SECO_CEC
|
||||
help
|
||||
If you say yes here you will get support for the
|
||||
SECO Boards Consumer-IR in seco-cec driver.
|
||||
|
|
|
|||
Loading…
Reference in a new issue