From patchwork Thu Apr 20 08:15:20 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Arnd Bergmann X-Patchwork-Id: 9689851 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 11DC060326 for ; Thu, 20 Apr 2017 08:17:14 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id F3D2520453 for ; Thu, 20 Apr 2017 08:17:13 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id E70EE223C7; Thu, 20 Apr 2017 08:17:13 +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 8F5DC20453 for ; Thu, 20 Apr 2017 08:17:13 +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=UE/UjP1dGznkLaV/my8TjxUtKxNfS7fJId7w2BPm2Kg=; b=lXb ZpEksdMrnkpCg64y3bplh47uWEy9lSRsEAx81QJmkV72Wyd2g4Sk2AyJ0DMjps4CGXFaXaLE34wlk x+jl86GYy0FEbanIj7gKh83yAJAkS3nFcsL6IM0MzOyiQ+I63PZfchxuC2+978wT1z2XipgUDp86J cl0aO7slO2+chWJu6XO1S3N8hs/FbL4ykzfhBNO3Rn2UGVs5dnkOygIcxSA9nfSD1lvt29Gu+rnGG Qk2QFOPt7N1Ny3ZHtJDLSR0PBkZi27vuBMlBBiJEbhNl3/YHMwMtCkpWuNcgvZTCDT6zOlrIANO2u 458ZhHx5s1VPkExGP1Wbqx1L+WXNihg==; 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 1d17H5-0005az-Qp; Thu, 20 Apr 2017 08:17:11 +0000 Received: from mout.kundenserver.de ([212.227.126.133]) by bombadil.infradead.org with esmtps (Exim 4.87 #1 (Red Hat Linux)) id 1d17Gs-0005M8-3I; Thu, 20 Apr 2017 08:17:00 +0000 Received: from wuerfel.lan ([78.42.17.5]) by mrelayeu.kundenserver.de (mreue003 [212.227.15.129]) with ESMTPA (Nemesis) id 0MSmoL-1cbzDT24QP-00RqQV; Thu, 20 Apr 2017 10:15:38 +0200 From: Arnd Bergmann To: Liam Girdwood , Mark Brown Subject: [PATCH] ASoC: mediatek: add I2C dependency for CS42XX8 Date: Thu, 20 Apr 2017 10:15:20 +0200 Message-Id: <20170420081541.658178-1-arnd@arndb.de> X-Mailer: git-send-email 2.9.0 X-Provags-ID: V03:K0:x8GUyyqKR6RLmiRZUsC/R0CUO9/C5wSNc5BW8/43zN+yig6U5w4 dk3MwmJfrQtu4EhPaP8RU2M5+oPFW18i6Rrpjm9yYp67DfWR9mXl8I27ZcBdaMNxiHm51ir p9C78zOWi3Q38rYdQMGeGUBDaxDb//uffdnYYC5nfIB3GBkmKu53s+LxN+8YelaA88CpkKK JB94nG58E8BJIgVS1kk5g== X-UI-Out-Filterresults: notjunk:1; V01:K0:kh/v3ESIv7U=:hw+WQZalAqbNebn8+wSicw UUzVKGgr0rRajLqhYx78ThioWierwGxRDClE2ZKr+CSvrATGxmn/Tc2LHbJIjMpFxQAVPTU6B VBYKHvlR7+sKrqEAbab3TYXBuDJnzv1/pcb3xswZvRe3+bW+nA9C7gKqVmfvO5o9uOusQ3Cto Th0IW2gjdJN5IqX5ripRgbk38MguMVPpNfqrRt6D/caPdV4ySmjvWFGgurJw101i5oHp20G+a lEGCmZ5vYZOYARAaZmvbswgRXBPvDyYvJmf3o+OWPnV74F9pCleqR2ax+2VuCdjYRu8u5oPsu 8YLA4Y9D8u9oZtadSRUgP2HIMoCO6vxBiYYzYro9aD24wi0pXtrAyOWy0BJqQjiFsJnpklr9O AP9xAm6rx5nlR98N5y66mxMabug6FgjuFmIfIItrvYEHhH2lovo0pH1BAAEnvOr9y09cMFYBq O0QBx1vXWsOePfgxGx2uYgxAuLugssqaSayk0NFDMPxZW/b85uA3DbFKXm7neyVm6aGdtuZ8i o9hYgSVNE/TRHPfYIXqUG5hn33SFAghUCu2L2scz5OLt4QKFp5jYd+7OKpFK2j0+HDGzIx6Kt ssfyOZvEYd+bgIwT+lQjhzJ4aMRWZydl5WKfhQha6WNPkgW1L+ZwjUpPY+axjkkQ4z4E8pvLb x7x9JcGNDdQr7Xyl+R1KxudKVD0+yQYL4osCfu6NF4g3mogJGqOctrVxDzt2pXEJfq4U= X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20170420_011658_486390_2C0A8E15 X-CRM114-Status: GOOD ( 10.53 ) 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 , Ryder Lee , Arnd Bergmann , linux-kernel@vger.kernel.org, Garlic Tseng , Takashi Iwai , Jaroslav Kysela , 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_WM8960) selects SND_SOC_WM8960 which has unmet direct dependencies (SOUND && !M68K && !UML && SND && SND_SOC && I2C) sound/soc/codecs/wm8960.c:1469:1: error: data definition has no type or storage class [-Werror] sound/soc/codecs/wm8960.c:1469:1: error: type defaults to 'int' in declaration of 'module_i2c_driver' [-Werror=implicit-int] Fixes: 8625c1dbd876 ("ASoC: mediatek: Add mt2701-wm8960 machine driver") Signed-off-by: Arnd Bergmann Acked-by: Ryder Lee --- 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 c6f39040f71f..5c68797f36c4 100644 --- a/sound/soc/mediatek/Kconfig +++ b/sound/soc/mediatek/Kconfig @@ -24,7 +24,7 @@ config SND_SOC_MT2701_CS42448 config SND_SOC_MT2701_WM8960 tristate "ASoc Audio driver for MT2701 with WM8960 codec" - depends on SND_SOC_MT2701 + depends on SND_SOC_MT2701 && I2C select SND_SOC_WM8960 help This adds ASoC driver for Mediatek MT2701 boards