diff options
Diffstat (limited to 'sound/soc/davinci/davinci-pcm.h')
-rw-r--r-- | sound/soc/davinci/davinci-pcm.h | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/sound/soc/davinci/davinci-pcm.h b/sound/soc/davinci/davinci-pcm.h index fbb710c76c08..0fe2346a9aa2 100644 --- a/sound/soc/davinci/davinci-pcm.h +++ b/sound/soc/davinci/davinci-pcm.h | |||
@@ -29,7 +29,13 @@ struct davinci_pcm_dma_params { | |||
29 | unsigned int fifo_level; | 29 | unsigned int fifo_level; |
30 | }; | 30 | }; |
31 | 31 | ||
32 | #if IS_ENABLED(CONFIG_SND_DAVINCI_SOC) | ||
32 | int davinci_soc_platform_register(struct device *dev); | 33 | int davinci_soc_platform_register(struct device *dev); |
33 | void davinci_soc_platform_unregister(struct device *dev); | 34 | #else |
35 | static inline int davinci_soc_platform_register(struct device *dev) | ||
36 | { | ||
37 | return 0; | ||
38 | } | ||
39 | #endif /* CONFIG_SND_DAVINCI_SOC */ | ||
34 | 40 | ||
35 | #endif | 41 | #endif |