From: Peter Ujfalusi Date: Wed, 16 Jul 2014 12:12:03 +0000 (+0300) Subject: ASoC: edma-pcm: Add empty functions for !CONFIG_SND_EDMA_SOC builds X-Git-Tag: v3.17-rc1~101^2~5^2~9^6~3 X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=e8ffacee0adacc1a1312a14acb123544cd4094b9;p=karo-tx-linux.git ASoC: edma-pcm: Add empty functions for !CONFIG_SND_EDMA_SOC builds So drivers mixing with other platform drivers, like davinci-mcasp do not need to fiddle with CONFIG_SND_EDMA_SOC in their code. Signed-off-by: Peter Ujfalusi Tested-by: Daniel Mack Signed-off-by: Mark Brown --- diff --git a/sound/soc/davinci/edma-pcm.h b/sound/soc/davinci/edma-pcm.h index 894c378c0f74..b0957744851c 100644 --- a/sound/soc/davinci/edma-pcm.h +++ b/sound/soc/davinci/edma-pcm.h @@ -20,6 +20,13 @@ #ifndef __EDMA_PCM_H__ #define __EDMA_PCM_H__ +#if IS_ENABLED(CONFIG_SND_EDMA_SOC) int edma_pcm_platform_register(struct device *dev); +#else +static inline int edma_pcm_platform_register(struct device *dev) +{ + return 0; +} +#endif /* CONFIG_SND_EDMA_SOC */ #endif /* __EDMA_PCM_H__ */