Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S943575AbdDTIRI (ORCPT ); Thu, 20 Apr 2017 04:17:08 -0400 Received: from mout.kundenserver.de ([212.227.126.133]:63652 "EHLO mout.kundenserver.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S942133AbdDTIRF (ORCPT ); Thu, 20 Apr 2017 04:17:05 -0400 From: Arnd Bergmann To: Liam Girdwood , Mark Brown Cc: Arnd Bergmann , Jaroslav Kysela , Takashi Iwai , Matthias Brugger , Garlic Tseng , Philipp Zabel , PC Liao , Ryder Lee , Koro Chen , alsa-devel@alsa-project.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-mediatek@lists.infradead.org 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= Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1145 Lines: 28 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 --- 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 -- 2.9.0