summaryrefslogtreecommitdiffstats
path: root/sound/soc/davinci/edma-pcm.h
diff options
context:
space:
mode:
Diffstat (limited to 'sound/soc/davinci/edma-pcm.h')
-rw-r--r--sound/soc/davinci/edma-pcm.h7
1 files changed, 7 insertions, 0 deletions
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__ */