[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20190613152319.30076-1-yuehaibing@huawei.com>
Date: Thu, 13 Jun 2019 23:23:19 +0800
From: YueHaibing <yuehaibing@...wei.com>
To: <mchehab@...nel.org>, <tglx@...utronix.de>, <corbet@....net>,
<gregkh@...uxfoundation.org>, <sean@...s.org>
CC: <linux-kernel@...r.kernel.org>, <linux-media@...r.kernel.org>,
YueHaibing <yuehaibing@...wei.com>
Subject: [PATCH v2] media: ttpci: Fix build error without RC_CORE
If RC_CORE is not set, building fails:
drivers/media/pci/ttpci/av7110_ir.o: In function `av7110_ir_init':
av7110_ir.c:(.text+0x1b0): undefined reference to `rc_allocate_device'
av7110_ir.c:(.text+0x2c1): undefined reference to `rc_register_device'
av7110_ir.c:(.text+0x2dc): undefined reference to `rc_free_device'
Reported-by: Hulk Robot <hulkci@...wei.com>
Suggested-by: Sean Young <sean@...s.org>
Fixes: 71f49a8bf5c5 ("media: ttpci: use rc-core for the IR receiver")
Signed-off-by: YueHaibing <yuehaibing@...wei.com>
---
v2: use depends on DVB_AV7110_IR instead of select as Sean Young's suggestion
---
drivers/media/pci/ttpci/Kconfig | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/drivers/media/pci/ttpci/Kconfig b/drivers/media/pci/ttpci/Kconfig
index d96d4fa..8a362ee 100644
--- a/drivers/media/pci/ttpci/Kconfig
+++ b/drivers/media/pci/ttpci/Kconfig
@@ -1,13 +1,14 @@
# SPDX-License-Identifier: GPL-2.0-only
config DVB_AV7110_IR
bool
+ depends on RC_CORE=y || RC_CORE = DVB_AV7110
+ default DVB_AV7110
config DVB_AV7110
tristate "AV7110 cards"
depends on DVB_CORE && PCI && I2C
select TTPCI_EEPROM
select VIDEO_SAA7146_VV
- select DVB_AV7110_IR if INPUT_EVDEV=y || INPUT_EVDEV=DVB_AV7110
depends on VIDEO_DEV # dependencies of VIDEO_SAA7146_VV
select DVB_VES1820 if MEDIA_SUBDRV_AUTOSELECT
select DVB_VES1X93 if MEDIA_SUBDRV_AUTOSELECT
--
2.7.4
Powered by blists - more mailing lists