ASoC: davinci-pcm: Add empty functions for !CONFIG_SND_DAVINCI_SOC builds
authorPeter Ujfalusi <peter.ujfalusi@ti.com>
Tue, 18 Mar 2014 13:20:37 +0000 (15:20 +0200)
committerMark Brown <broonie@linaro.org>
Mon, 14 Apr 2014 16:24:10 +0000 (17:24 +0100)
To save drivers using davinci-pcm and edma-pcm the need to fiddle with
!CONFIG_SND_DAVINCI_SOC in their code.

Signed-off-by: Peter Ujfalusi <peter.ujfalusi@ti.com>
Signed-off-by: Mark Brown <broonie@linaro.org>
sound/soc/davinci/davinci-pcm.h

index fbb710c76c083ef90b9c442e1776ec00fcb8aa08..5fd4737ab3982050d50d935a08cb7d637ee64258 100644 (file)
@@ -29,7 +29,17 @@ struct davinci_pcm_dma_params {
        unsigned int fifo_level;
 };
 
+#if IS_ENABLED(CONFIG_SND_DAVINCI_SOC)
 int davinci_soc_platform_register(struct device *dev);
 void davinci_soc_platform_unregister(struct device *dev);
+#else
+static inline int davinci_soc_platform_register(struct device *dev)
+{
+       return 0;
+}
+static inline void davinci_soc_platform_unregister(struct device *dev)
+{
+}
+#endif /* CONFIG_SND_DAVINCI_SOC */
 
 #endif