From: Arnd Bergmann Date: Mon, 29 Sep 2014 15:32:17 +0000 (+0200) Subject: ASoC: davinci: vcif must be a module if SND_DAVINCI_SOC is X-Git-Tag: fixes-against-v3.18-rc2~128^2~8^2~13^2 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=19926c6de0c37f486f00b7531aec4ba5a09451ae;p=pandora-kernel.git ASoC: davinci: vcif must be a module if SND_DAVINCI_SOC is It is possible to configure a kernel with SND_DAVINCI_SOC=m and SND_DM365_VOICE_CODEC=y, which results in a link error: sound/built-in.o: In function `davinci_vcif_probe': sound/soc/davinci/davinci-vcif.c:223: undefined reference to `davinci_soc_platform_register' The best way to avoid this is to make SND_DM365_VOICE_CODEC a tristate option that depends on SND_DAVINCI_SOC, so it can only be a module or disabled when the base driver is a loadable module Signed-off-by: Arnd Bergmann Signed-off-by: Mark Brown --- Reading git-diff-tree failed