From patchwork Fri May 25 15:25:10 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Arnd Bergmann X-Patchwork-Id: 10427747 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 8016E602D6 for ; Fri, 25 May 2018 15:26:26 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 722C028671 for ; Fri, 25 May 2018 15:26:26 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 666AB29718; Fri, 25 May 2018 15:26:26 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-7.9 required=2.0 tests=BAYES_00, MAILING_LIST_MULTI, RCVD_IN_DNSWL_HI autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id E2C8828671 for ; Fri, 25 May 2018 15:26:25 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S966130AbeEYP0Y (ORCPT ); Fri, 25 May 2018 11:26:24 -0400 Received: from mout.kundenserver.de ([212.227.126.130]:37871 "EHLO mout.kundenserver.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S965710AbeEYP0Y (ORCPT ); Fri, 25 May 2018 11:26:24 -0400 Received: from wuerfel.lan ([95.208.111.237]) by mrelayeu.kundenserver.de (mreue001 [212.227.15.129]) with ESMTPA (Nemesis) id 0M2U69-1gEcHD1wvN-00sJVj; Fri, 25 May 2018 17:26:14 +0200 From: Arnd Bergmann To: Mauro Carvalho Chehab , Brad Love Cc: Arnd Bergmann , Hans Verkuil , Oleh Kravchenko , linux-media@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH 3/5] media: cx231xx: fix RC_CORE dependency Date: Fri, 25 May 2018 17:25:10 +0200 Message-Id: <20180525152523.2821369-3-arnd@arndb.de> X-Mailer: git-send-email 2.9.0 In-Reply-To: <20180525152523.2821369-1-arnd@arndb.de> References: <20180525152523.2821369-1-arnd@arndb.de> X-Provags-ID: V03:K1:88JGFdRo9RXsChw5Spmkf7mu/yotBmE9TqYOV0LsZehGmehGT+B ErpC6dspbuIlo4cxGTUJ0VfjVHl5MuXpVOCvt5m7wmWmI7Wna3me2nL5yDDRKz3irgv0gi5 JMYsB2M+zLr4eB2/+l4oBenORcKjixJwI4/0GAhSXj3A/VR7yAxAUBOxjvDGC2R9yE/8c/E GwYlZSYUb1LCYA28CTEwg== X-UI-Out-Filterresults: notjunk:1; V01:K0:LSRIubGSrUE=:zrmKC7XpdoR2EE77TNQj0w a+DQ2Pris2XPZKhM4QVCqM7Y9cQpckqVDKJJ32BzwFxQ0m5LIx3P5SbA2hS5oOYplx7DzcnEc PCvlufVF4pY0XbVtHTG9L8ThoNkrlS6x3ArzEjJhn++Kq8bj68ZggethZnRyH/qijZ+S/Q1Uu 8KkRf7BeSL19Tw67AnKIvq72oyEVjqHrPMHtUneBi6DA3px7C6eya5l7FXwrnyGV2qUpXkZMp Ds9dv2hA+8iezMuSEV7/1jPwF/IXF8mS/bbNrXLZ35YCbPckvd8794O3H5ECONmvzVcBAEBYf HdxGxQ7s3AMBGhi59TEevhEcSXF1l/qk8k5pp7wAnI+GzSIIhv3pdclToZLwLULcHeVaZhKKH XWnVXUhhQhMu2RjvYe4DBKtOpHCv2xgIOMAt0Rh9tmclfTU2MKh1IjygvgEb4mLygyaptzozS GgGNL9HO0UaS94auTO02kgrkitQlaRHRDhjTiwVMfVjzzFGKsgVn9BNTEbAJW1lBvfC15mYR/ KVbMk81l47LcIQ+tHbC39C3GMPfBp9VZJsJK1ZTmBjZKR+3ld0NNAO5gXaxbMrKoa6w6g2dki IkaIj31953a/aVrUFcF+AC4souvEZ6XuUVs760QwVZW/8+81G8jin06LdJIHnO25YoJHW6/Qj 8fEZ/RbtPOgA0elj1BaTZ45ZhMYMLGQAgo4K1OVW7vVoNP4V7W4/WYVhxvnGYvBYum/c= Sender: linux-media-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-media@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP With CONFIG_RC_CORE=m and VIDEO_CX231XX=y, we get a link failure: drivers/media/usb/cx231xx/cx231xx-input.o: In function `cx231xx_ir_init': cx231xx-input.c:(.text+0xd4): undefined reference to `rc_allocate_device' This narrows down the dependency so that only valid configurations are allowed. Fixes: 84545d2a1436 ("media: cx231xx: Remove RC_CORE dependency") Signed-off-by: Arnd Bergmann --- drivers/media/usb/cx231xx/Kconfig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/media/usb/cx231xx/Kconfig b/drivers/media/usb/cx231xx/Kconfig index 0f13192634c7..9e5b3e7c3ef5 100644 --- a/drivers/media/usb/cx231xx/Kconfig +++ b/drivers/media/usb/cx231xx/Kconfig @@ -15,7 +15,7 @@ config VIDEO_CX231XX config VIDEO_CX231XX_RC bool "Conexant cx231xx Remote Controller additional support" - depends on RC_CORE + depends on RC_CORE=y || RC_CORE=VIDEO_CX231XX depends on VIDEO_CX231XX default y ---help---