From patchwork Wed Jan 13 22:14:54 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Arnd Bergmann X-Patchwork-Id: 8028681 Return-Path: X-Original-To: patchwork-linux-mediatek@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork1.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.136]) by patchwork1.web.kernel.org (Postfix) with ESMTP id ED68E9F744 for ; Wed, 13 Jan 2016 22:15:32 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 2D39E20528 for ; Wed, 13 Jan 2016 22:15:32 +0000 (UTC) Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.9]) (using TLSv1.2 with cipher AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 548B920522 for ; Wed, 13 Jan 2016 22:15:31 +0000 (UTC) Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.80.1 #2 (Red Hat Linux)) id 1aJThS-0008Rz-So; Wed, 13 Jan 2016 22:15:30 +0000 Received: from mout.kundenserver.de ([212.227.17.13]) by bombadil.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1aJThJ-0007DR-Fc; Wed, 13 Jan 2016 22:15:22 +0000 Received: from wuerfel.localnet ([134.3.118.24]) by mrelayeu.kundenserver.de (mreue103) with ESMTPSA (Nemesis) id 0MfSEV-1aYXqE0FPH-00P7o1; Wed, 13 Jan 2016 23:14:57 +0100 From: Arnd Bergmann To: broonie@kernel.org Subject: [PATCH] ASoC: mediatek: add i2c dependency Date: Wed, 13 Jan 2016 23:14:54 +0100 Message-ID: <5346380.rqT2CVl4PH@wuerfel> User-Agent: KMail/4.11.5 (Linux/3.16.0-10-generic; KDE/4.11.5; x86_64; ; ) MIME-Version: 1.0 X-Provags-ID: V03:K0:CiT5W33m5/r/GZ01l2ySIFAL/x80pyVwkkrI3r+Ky/ScplsW23I 5tlF0dFkpoZDqoL2BTJXbdamtYHVgaD39bVlruzf3vuHu6310Ai+g0jU9PcHMYxHi6N/bk3 TxiwGUtyQGa5017It18NoaHj710ssm9iixTBRR3hs9u9vos9JgfJI0VviAT18USD9fq+A9j SHqMwi3gIjY9nr9zgAPYw== X-UI-Out-Filterresults: notjunk:1; V01:K0:Q3U8sRcFZh4=:5cZ7cb8aErDoNidOwx7GH3 klM4FixcIJF5yC5GJrK4oUdI1Qh8n+XQf6eONq25qiy9xI9J/Tqm17ITblifpo7sJo7bEzunO Blnm10jBw1ZZlx8gVI67Hm3lgHtjetAqI0NAGIrSlP5I9toG0FJDNj005jnju6XASq7T+Ufs7 mWFDRc9IEfi658cp2+N2E26AbiVlr/iDWTmy11ThpCi35Y49mPdRnBCicN0cEMzBRJgW28Tar nqljJugzpSakogDFVqGzMRilDxdrGHM3FxOp1+xAM7iNPVJzZ8MlJeq4PhAh6p9iC8mhH2qOA NSruDM4HvEbySixTMCG6KN4ZExMTCFWEDpp6CYFTKEdKeEVaLYdjHero8sGUKWlapG4Vq8rvb Cy+r0II2hKosjS/yjgHuhcFcHJt9qMBG/4pvoXtxlyXiPvzFg9/g/Cb9j7SSjR/QjohenCzXy 2+7a1IoPbcKYrU+4nko87d0K+Qm5GidZSoCKSlE8blMKUDsGzwv8pprh5T1YVsTpz+/TuizpN gGJZO0Rkga5p28uUt7TdWFC9nthYdWNJv47dwJzFn+1Fzoge7yhjoR+w8hYBdobalmwGKqEyY dcnWiyKngDfyBQn+qyjxLG5gaTrjK/edoj70JZqDSA24AI9k2t6YSdTksFYVbzozYwE5KpJth ZP8p5RC5C0aNFJlWG0jD92c0en6f8PZNQmYCiNbfToweJvpItGVcCp6eN35ikpriJA2PNqQme 2zNKXKxmNVyd0U+0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20160113_141521_926035_1769093F X-CRM114-Status: GOOD ( 10.98 ) X-Spam-Score: -2.6 (--) X-BeenThere: linux-mediatek@lists.infradead.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: alsa-devel@alsa-project.org, linux-mediatek@lists.infradead.org, lgirdwood@gmail.com, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Sender: "Linux-mediatek" Errors-To: linux-mediatek-bounces+patchwork-linux-mediatek=patchwork.kernel.org@lists.infradead.org X-Spam-Status: No, score=-4.2 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_MED, RP_MATCHES_RCVD, UNPARSEABLE_RELAY autolearn=unavailable version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP The newly added mediatek drivers for mt8173 select codes that depend on I2C, which cuases a build failure if I2C is disabled: warning: (SND_SOC_ADAU1761_I2C && SND_SOC_ADAU1781_I2C && SND_SOC_ADAU1977_I2C && SND_SOC_RT5677 && EXTCON_MAX14577 && EXTCON_MAX77693 && EXTCON_MAX77843 && BMC150_ACCEL_I2C && BMG160_I2C) selects REGMAP_I2C which has unmet direct dependencies (I2C) codecs/rt5645.c:3854:1: warning: data definition has no type or storage class codecs/rt5645.c:3854:1: error: type defaults to 'int' in declaration of 'module_i2c_driver' [-Werror=implicit-int] codecs/rt5677.c:5270:1: warning: data definition has no type or storage class 77_i2c_driver); codecs/rt5677.c:5270:1: error: type defaults to 'int' in declaration of 'module_i2c_driver' [-Werror=implicit-int] This adds an explicit dependency. Signed-off-by: Arnd Bergmann Acked-by: Koro Chen diff --git a/sound/soc/mediatek/Kconfig b/sound/soc/mediatek/Kconfig index 15c04e2eae34..976967675387 100644 --- a/sound/soc/mediatek/Kconfig +++ b/sound/soc/mediatek/Kconfig @@ -9,7 +9,7 @@ config SND_SOC_MEDIATEK config SND_SOC_MT8173_MAX98090 tristate "ASoC Audio driver for MT8173 with MAX98090 codec" - depends on SND_SOC_MEDIATEK + depends on SND_SOC_MEDIATEK && I2C select SND_SOC_MAX98090 help This adds ASoC driver for Mediatek MT8173 boards @@ -19,7 +19,7 @@ config SND_SOC_MT8173_MAX98090 config SND_SOC_MT8173_RT5650_RT5676 tristate "ASoC Audio driver for MT8173 with RT5650 RT5676 codecs" - depends on SND_SOC_MEDIATEK + depends on SND_SOC_MEDIATEK && I2C select SND_SOC_RT5645 select SND_SOC_RT5677 help