From patchwork Tue Feb 21 22:00:46 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Arnd Bergmann X-Patchwork-Id: 9585799 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 D6961602A7 for ; Tue, 21 Feb 2017 22:02:38 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id BA9B82842E for ; Tue, 21 Feb 2017 22:02:38 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id ABEE228644; Tue, 21 Feb 2017 22:02:38 +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=-1.4 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,RCVD_IN_SORBS_SPAM autolearn=no version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [65.50.211.133]) (using TLSv1.2 with cipher AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id 5AB102842E for ; Tue, 21 Feb 2017 22:02:38 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:MIME-Version:Cc:List-Subscribe: List-Help:List-Post:List-Archive:List-Unsubscribe:List-Id:Message-Id:Date: Subject:To:From:Reply-To:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To: References:List-Owner; bh=EqjOnVCciHJuSlC/TjP/BaJrQaCboK/vdvjOS5L9MqU=; b=fCe vChE/qqFG7hifcOOuZSxjXBFQ83ShXeK74JC8ikI+ppPAwa33/AkkXJbH+y3h49qm5wg3DN+SoErR WCSpHMlF9AAsdvevwRn4v4UHpcJTCvIcFPKNzvRseMnLX65eCcwO4ZRZkGUqQ9PjLmuk046M2KOKb NWsU9YSEiqizaNLkY83uYxlpiVd0lK3ijmepR/N+fQUhMxVl5WmwrC2QuFAeICgVvUO1YVtNbSZdr DnKVkTA5K0GmzRv2rpomjeN3aNuELs+Luf0oaXqMgtKoUJ61iGHxaowTULuH25nVtdYl1rFJ1rWni ikT3WgBaXMAHI25Px9s1Y3vff+SrYrw==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.87 #1 (Red Hat Linux)) id 1cgIW4-0004MY-NM; Tue, 21 Feb 2017 22:02:36 +0000 Received: from mout.kundenserver.de ([212.227.126.134]) by bombadil.infradead.org with esmtps (Exim 4.87 #1 (Red Hat Linux)) id 1cgIVS-0002y8-Kj; Tue, 21 Feb 2017 22:02:01 +0000 Received: from wuerfel.lan ([78.42.17.5]) by mrelayeu.kundenserver.de (mreue005 [212.227.15.129]) with ESMTPA (Nemesis) id 0MQJyK-1clpLT38cm-00TpHG; Tue, 21 Feb 2017 23:01:15 +0100 From: Arnd Bergmann To: Mark Brown Subject: [PATCH] ASoC: mediatek: add I2C dependency for CS42XX8 Date: Tue, 21 Feb 2017 23:00:46 +0100 Message-Id: <20170221220108.200734-1-arnd@arndb.de> X-Mailer: git-send-email 2.9.0 X-Provags-ID: V03:K0:UK9JfQMaqmjRZGCoWT+/9GbOFG0o3FYhmlMLACkg4R3QnsXXlbY 233g0w3YafowZwxRJmcJ3TdhYxcycT1T4/4IIrQRgsCwCvDc8LwM2i3WDJp7LCkz/JLpkob c0UNm6Cvh50gtL/rcxSmS71DlR+VjjptIOzsPiGGYUm3olt7tL5FqB7diS4NiMG5P7IvxdT YeKE3ByT+YGtcQbExeWhA== X-UI-Out-Filterresults: notjunk:1; V01:K0:LenMy4JCrNA=:DgPaGG8SEw59Y6eP0OsfdB 044SyFtgxc/rjso95+TkFPDx+Ax6DrPIeCDRSBmzT0X/3yMCGWikRUteKUhPH7U/Zzy9rBf6D 09R6KueJCJyvUcZmGAdVgXCUTScJaJANOtRu8kapQLLvT8MRaMsgFaJVvZvtJWBBd+OQFmvEn NLgtYxCGv4rmPJghY/WYZ6LTTThd/OxRTGXTsw2k6uYWGhx1kp42uIvBt5fcO2S7H62Ke662z uGhi2l0wBc5FZ6YjmS2RrcKOlQlOD94svt1GrmTwO0JKY01QRjHUgP8uI7+KZ2i2ObbSZ+n22 1kxqvhxCc3BRZ/+kaCRk/i1iPobS2hPX5MyICC++HCMK0qhZZ5/om9k9UQY98RPr5EFc5U1ZV FSRUhJRJOWIXx+NJIUguTfdWM7/rfuDiEvG/we2YEvFRNSlqNxqXaXJRCDsamzpI486ePFSZ8 LC4/ipV0J00jEjhTDsnKnZzpFIJCCGZT1R+FrqB6CLaGZUrjls6J2flyFi+5/sbBxuJpEt1OR QVEA4TNRBXjRiS2+5L3F85RE5VrhqlWL5nkxpDGbZMMq8X0PrUMD77LowbrnDp7HKBUPk0iZe rxiTrGBvU5Ha5dnIoKtn8YzplnfYLyzQ9xVwlUE/azhwViRkh2BJ8k40BtwQ8LA/xnLoHSPnK HtocztlTCsfNCVkddgULFucpMmwQrjarV6seSqHmGZprR/nxziUz+E1qKe/ZGZwfTKeA= X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20170221_140159_043255_88CDCABF X-CRM114-Status: GOOD ( 10.18 ) X-BeenThere: linux-mediatek@lists.infradead.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Koro Chen , Arnd Bergmann , Garlic Tseng , Liam Girdwood , linux-kernel@vger.kernel.org, linux-mediatek@lists.infradead.org, Philipp Zabel , PC Liao , Matthias Brugger , alsa-devel@alsa-project.org, linux-arm-kernel@lists.infradead.org MIME-Version: 1.0 Sender: "Linux-mediatek" Errors-To: linux-mediatek-bounces+patchwork-linux-mediatek=patchwork.kernel.org@lists.infradead.org X-Virus-Scanned: ClamAV using ClamSMTP We should not select drivers that depend on I2C when that is disabled, as it results in a build error: warning: (SND_SOC_MT2701_CS42448) selects SND_SOC_CS42XX8_I2C which has unmet direct dependencies (SOUND && !M68K && !UML && SND && SND_SOC && I2C) sound/soc/codecs/cs42xx8-i2c.c:60:1: warning: data definition has no type or storage class module_i2c_driver(cs42xx8_i2c_driver); sound/soc/codecs/cs42xx8-i2c.c:60:1: error: type defaults to 'int' in declaration of 'module_i2c_driver' [-Werror=implicit-int] Fixes: 1f458d53f76c ("ASoC: mediatek: Add mt2701-cs42448 driver and config option.") Signed-off-by: Arnd Bergmann --- sound/soc/mediatek/Kconfig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sound/soc/mediatek/Kconfig b/sound/soc/mediatek/Kconfig index 05cf809cf9e1..d7013bde6f45 100644 --- a/sound/soc/mediatek/Kconfig +++ b/sound/soc/mediatek/Kconfig @@ -13,7 +13,7 @@ config SND_SOC_MT2701 config SND_SOC_MT2701_CS42448 tristate "ASoc Audio driver for MT2701 with CS42448 codec" - depends on SND_SOC_MT2701 + depends on SND_SOC_MT2701 && I2C select SND_SOC_CS42XX8_I2C select SND_SOC_BT_SCO help