Received: by 2002:ac0:a5a7:0:0:0:0:0 with SMTP id m36-v6csp6764870imm; Tue, 24 Jul 2018 02:38:25 -0700 (PDT) X-Google-Smtp-Source: AAOMgpdYGnLJG2aB0S+/e70KWTgPA3IBURhEnWiADHBrLUvjECyj77DSmzE6s7anVsMZ5WicZMJC X-Received: by 2002:a63:89c7:: with SMTP id v190-v6mr15258299pgd.194.1532425105010; Tue, 24 Jul 2018 02:38:25 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1532425104; cv=none; d=google.com; s=arc-20160816; b=Y9VanMsLiaSP1jQQl/V57PSoifgzkpDuvBJWkzzFuSoW1nXLYFtawvECl2g/mfZsOD cl6FqlH0owlEyjgbonBINonvZ/G+l6f8NMiF8WpCh3f4R19vSgSv7wVlrN2V7WLnwjZ1 zNEQTj09KIt8TTsbNpxjEwm7oyaXZRm5IMS4uTjhXxRWBUFyOkjZ5anoxZO3z6ZzAWm/ UDnvpnKbqTNfjP+lZD6ZXRqK0i6RCepfEK1waW3oaFAEsnaUPuN0794jxK+s5vp1gVqw /wfPb9fm7F6w6yXMzX5AntkT8zNP/ogAovYbvc8SEUXNqkMJdkEvpkYeOFBfC0AsN01n Smjg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:date:subject:cc:to:from :arc-authentication-results; bh=kNQtb55KXQkaJx7CF8fAg9cXxQPLGulrp96J0e9KMOk=; b=F+HiGjkZHB1BBfPH7AepLVDcq9jU/zEREB3Q/t5BSOGjBLm+LbfsPvkUzrEApDleFf liK3EITp5/8UX8B8oxnWNbUBLMHfHQ21YTQUQbEJcSi0+R50IQ4aN2rFk4V7ETKokh5+ zQpschtZ6wu/bX909+Wo/huU82CXlJClJqCqndP0+mCpNO8kl3XcbZdnYmnDmFW74x6Z gm0Ly8BZ9LlZIPh1zVbCFvUrd11D9sZCiMrcYGhoQ7PqfSO9ZO6Hng14eISGWz7sdomU A8fU885K+fiUPpNrNAtY3uNhlPPDuV+PV8vI/ohzeC20d1LkYS/gHy4DYIzMOls8Net7 m90Q== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-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 q67-v6si10683496pga.63.2018.07.24.02.38.10; Tue, 24 Jul 2018 02:38:24 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-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-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2388350AbeGXKmP (ORCPT + 99 others); Tue, 24 Jul 2018 06:42:15 -0400 Received: from mout.kundenserver.de ([217.72.192.73]:41737 "EHLO mout.kundenserver.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726367AbeGXKmP (ORCPT ); Tue, 24 Jul 2018 06:42:15 -0400 Received: from wuerfel.lan ([109.193.40.16]) by mrelayeu.kundenserver.de (mreue103 [212.227.15.145]) with ESMTPA (Nemesis) id 0Lo2Ke-1gEka42Ecy-00g2wo; Tue, 24 Jul 2018 11:36:28 +0200 From: Arnd Bergmann To: Lee Jones , Mauro Carvalho Chehab , Hans Verkuil Cc: Arnd Bergmann , Jacob Chen , linux-media@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH] media: platform: cros-ec-cec: fix dependency on MFD_CROS_EC Date: Tue, 24 Jul 2018 11:35:59 +0200 Message-Id: <20180724093624.1670671-1-arnd@arndb.de> X-Mailer: git-send-email 2.18.0 X-Provags-ID: V03:K1:5wE6/zZnGM93XxbcP+X04QrxoC1REJYXYxT9bTmgAtrnRoEBST1 jMpJEOMNdtXBz17gEDYlz3zUD/PiVzroamn51UHR3I7Q1r8z1WQUL0J4s/8nN6k6BDt4DhP RomabAJK4fWrW+mbQVT5eM8W0WRaddjUWe+Tl8S6QdYJjYzEAB1REDLLBc2rLWUB8sCKcNC cALz2KuQvinQWN285T+Jw== X-UI-Out-Filterresults: notjunk:1;V01:K0:6d5EYb9kV+c=:C0IWJjJ4cRkUkMDCuomgIP QslonKouI5Ecghwhjv/XEBdu859Y5Z3wPNOJ58cGBPJL80JvIUt7+MK7NjF9X+VFbVbj8jFxC 9W0d0cS+/sOEKAEfDK+d210VRmPP4VIoJlqYCvHLrvn/IGRr6ELt3gkZt2JBsjc/3LeD3TWdQ X920tKpBwhkswSnOteV6PWx0srRf1PxeyujcqVTkdW0coImtd2qf/faE0dI8XWJJBJTxcA5ak utHYmw3nRDg7vlDTmCmaTcraveHtKLNe7Z0THtQ0ZwUolty8GGfEdCQivxw4dwNQlRd0c4fB4 XuUD/IlGQ08tkGt0rzIN27eFglsZ38IhaLD7QtH+1+T98UA8HIp13910ziVxtOgWa/1CRJjjx I0Gvf5o06sQj2w+guXxxtKEUIKqAEeXzAA/Em6Cae3bhAeBIVpcGtvECn7O65VOgurUqMDkCD HMq15vI+oCs/VV2XtVh8tVmBltg+3l1a1+ra1GCua5QGmOR//4eoJ6RWRU6L/10UAftTErPin Dnf4w73IMql9rQW3gQlb+zXu4R5mWvWapJD1WFRf4O6EXtdnyeleRjw7I3T+u/GRjfvQ0KYpN ceF4mcrnEqTKEysV32BLwopcN5o+fTGBSv43i9J1flX9xRPuSzisGuMQ+6heXNcdXxIUXEH3p ep3/2hBT5Y5zLCzxQiKCXJiwzaNuhVsXoQiwekCAyltQg/P2mZK3VstgZI1SXJnymVnE= Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Without the MFD driver, we run into a link error: drivers/media/platform/cros-ec-cec/cros-ec-cec.o: In function `cros_ec_cec_transmit': cros-ec-cec.c:(.text+0x474): undefined reference to `cros_ec_cmd_xfer_status' drivers/media/platform/cros-ec-cec/cros-ec-cec.o: In function `cros_ec_cec_set_log_addr': cros-ec-cec.c:(.text+0x60b): undefined reference to `cros_ec_cmd_xfer_status' drivers/media/platform/cros-ec-cec/cros-ec-cec.o: In function `cros_ec_cec_adap_enable': cros-ec-cec.c:(.text+0x77d): undefined reference to `cros_ec_cmd_xfer_status' As we can compile-test all the dependency, the extra '| COMPILE_TEST' is not needed to get the build coverage, and we can simply turn MFD_CROS_EC into a hard dependency to make it build in all configurations. Fixes: cd70de2d356e ("media: platform: Add ChromeOS EC CEC driver") Signed-off-by: Arnd Bergmann --- drivers/media/platform/Kconfig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/media/platform/Kconfig b/drivers/media/platform/Kconfig index 92b182da8e4d..018fcbed82e4 100644 --- a/drivers/media/platform/Kconfig +++ b/drivers/media/platform/Kconfig @@ -535,7 +535,7 @@ if CEC_PLATFORM_DRIVERS config VIDEO_CROS_EC_CEC tristate "ChromeOS EC CEC driver" - depends on MFD_CROS_EC || COMPILE_TEST + depends on MFD_CROS_EC select CEC_CORE select CEC_NOTIFIER ---help--- -- 2.18.0