From patchwork Wed Mar 13 21:18:07 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Arnd Bergmann X-Patchwork-Id: 160279 Delivered-To: patch@linaro.org Received: by 2002:a02:5cc1:0:0:0:0:0 with SMTP id w62csp14769811jad; Wed, 13 Mar 2019 14:18:50 -0700 (PDT) X-Google-Smtp-Source: APXvYqyBYmBhxzKbYVfe+7ZUO04iBHzAu+3ujcrMHa3ZZ6I0KORAkzF9U15gqYLNPS0TJF9Ucxh0 X-Received: by 2002:aa7:8c8b:: with SMTP id p11mr19698509pfd.171.1552511929986; Wed, 13 Mar 2019 14:18:49 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1552511929; cv=none; d=google.com; s=arc-20160816; b=w6deX9EghqcxOChEHslOxYlGNCfHrYSRatcbNoD6ZsqhU6kC4WsEuYpjcYFWwh+Mpz eXPPNzxYDSEoHFAJXVYQzWXtuyvmgd4XBBWNXoPxQSgIO4FmzeH0NLBL/seBGTgiWBCh RtzkQ8wclKCqkeQPLwQBph4lRnYpb+kaVJA+Hm4jcBJT3Y+UP8Op85XFvnjXb7Flox8f kjScgVQLVz4PfWY6UnSDxtVxYt41VGV3dVTfypasUk2t19qmOH0pBSHz0Q7qIy41N9Xj jit56qra2WUY2mYJvAEgZpIut16F2xe7Xg7LFvQpBcpAIel5WHWdejZ2lsZFfBCPB33T 7FWw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from; bh=cLC09KiXcpbRv0s4geJgIxsHM1oAHgXlbbnHjFyO6Cg=; b=BXdrvEhIZWduMZoFs4z/S3v2e2Smgk9IsCN2Vh2USou85SO05k3nw6+N+ltB2Psc3D A16dvNNR3U+bD9yCRYui8kukPiG0WNm1vn6iuWvQTqFsrILfI7k1eGKhFi5/+xUJOUDK 7l94UdvvPlX92QQmjh8n9yhZAXmyPvfHi660zgF6Sggrw2EwQNKWL1z6rnMF5PYO8L65 QFezm3nwdp7gFI5xoxiHR0+XwK+JVeZs7NWnujfPCmw1g7oPYdAo8up5SXDhlf5zHZxQ 3lotuPhSYJXqzdphJVNdPTSuJ+btcAPyTmvSUHUCJUdYk9s7/evXUYtWFs6+oOzXU3VK kVhw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-media-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-media-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id a20si10809464pgw.64.2019.03.13.14.18.49; Wed, 13 Mar 2019 14:18:49 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-media-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-media-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-media-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727138AbfCMVSt (ORCPT + 3 others); Wed, 13 Mar 2019 17:18:49 -0400 Received: from mout.kundenserver.de ([217.72.192.74]:58273 "EHLO mout.kundenserver.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726125AbfCMVSt (ORCPT ); Wed, 13 Mar 2019 17:18:49 -0400 Received: from wuerfel.lan ([109.192.41.194]) by mrelayeu.kundenserver.de (mreue107 [212.227.15.145]) with ESMTPA (Nemesis) id 1MkYsS-1gdLUj2G22-00m5UP; Wed, 13 Mar 2019 22:18:27 +0100 From: Arnd Bergmann To: Mauro Carvalho Chehab Cc: Arnd Bergmann , Hans Verkuil , Sakari Ailus , Laurent Pinchart , Geert Uytterhoeven , linux-media@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH] media: seco-cec: fix building with RC_CORE=m Date: Wed, 13 Mar 2019 22:18:07 +0100 Message-Id: <20190313211825.571994-1-arnd@arndb.de> X-Mailer: git-send-email 2.20.0 MIME-Version: 1.0 X-Provags-ID: V03:K1:/y0Ua3LOKhN9lVs5dO16orTPEUdx2ZZowrhF4dLm1TLSbqDY943 NL9Jg8WeK8jA2N6z+jsl/T7awggk16IMBjPIY/39wfL7hgFt23dEmVCz0SWzdyHKZ/1VWqM VtZf5jaXwjLKbdT7p1InqQ4tX905RxPtakWXAXYgRyI0gRpmp2x6GLOlXI/7y0CSc4LPAjY LBUP6UZNy40DBEmWTV0kQ== X-Spam-Flag: NO X-UI-Out-Filterresults: notjunk:1; V03:K0:AyvQ7t2Xz0g=:24UnJUcG+X2Ez//KBUEmlX VddFq9Ai4kOMx3b17cbNRjQtrPfItrXwvZTjv2S6hChI5DmK4ISybsVm09Ri6tBXTmn5hyPE7 RS36Miy1t/1IUEYYA3PsbslIuOHRFTsJvMzVi3/U5wllWE0zIp+YALfkggDbPXL6GeKkRlwNE U1Ig65ODhMXkJRjNisrJK5fRPTilNnxBndK/3E6hYQjW/vAXudde6hI46dtLrjDKwcAlZ6Xep eNwmAF8xfKRJValsjal4+CnvL+DJ3b9MYdLjnaHDOlTzQlYyPN9e1GAodgp9QvlJZVbi7/Jmu ZZEB4olPB9ACU2pfUt87ZVOoDVe9xZuGDGpMybP/GYWCSZ+h9fpWDzsdcqhkWvjET/ApSpFVe e39vF1HeXauSg1JuJ0fGhH9WXCOMh/0tZCOjlOM+bOUmdFeAyCZfxIu1dO44K4f+hHkBEDavH qfBnn92Fm+uVb0UWfFeXoqcLulM1baQ6F9H91l7ZKdH3IyVfbaszOjz5jtcTCRfNp+LQCfarl feWs8+FHRsVuuGQcnxCXeUSBR1X8A6mkGKIXcgW6PzBDN3k8WTkgciSwIgKDJgMyB1rcpq5NB iUYLpiRn2Nj83yB0C3MFfm0D1ORRcmbaspkm/7+IBjJxuEB/JFOjcGTpx7friPN2bLD47l12N qNpun4OEdPk4Zjcxyk+tbc/59zoz0eJwkXL5nteP3JSvmRuUd4OftlwzyS74xTRB+zuOdS29Z VzmlwRWCekVw0MI0bZpl7/D9NzVUgxyLIScRHQ== Sender: linux-media-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-media@vger.kernel.org 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: f27dd0ad6885 ("media: seco-cec: fix RC_CORE dependency") Signed-off-by: Arnd Bergmann --- drivers/media/platform/Kconfig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) -- 2.20.0 diff --git a/drivers/media/platform/Kconfig b/drivers/media/platform/Kconfig index 4acbed189644..67e48ff10532 100644 --- a/drivers/media/platform/Kconfig +++ b/drivers/media/platform/Kconfig @@ -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.