From: Takashi Iwai Date: Wed, 5 Mar 2014 16:53:31 +0000 (+0100) Subject: ASoC: cs4271: Fix build error without CONFIG_SPI_MASTER X-Git-Tag: v3.15-rc1~36^2~1^2~5^2~7^5 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=9c369c6e885599818d98ff7130d6ef62ce6ae8d4;p=pandora-kernel.git ASoC: cs4271: Fix build error without CONFIG_SPI_MASTER cs4271_common_probe() is called from cs4271_i2c_probe() but defined in CONFIG_SPI_MASTER block, thus it results in a build error when CONFIG_SPI_MASTER=n: sound/soc/codecs/cs4271.c:721:2: error: implicit declaration of function ‘cs4271_common_probe’ [-Werror=implicit-function-declaration] Move the function out of #if block. Fixes: d6cf89ee07cb ('ASoC: cs4271: claim reset GPIO in bus probe function') Signed-off-by: Takashi Iwai Acked-by: Daniel Mack Acked-by: Brian Austin Signed-off-by: Mark Brown --- Reading git-diff-tree failed