diff options
author | Peter Ujfalusi <peter.ujfalusi@ti.com> | 2014-03-18 15:20:37 +0200 |
---|---|---|
committer | Mark Brown <broonie@linaro.org> | 2014-04-14 17:24:10 +0100 |
commit | 1a95d8d09ef7e40563afd587cce52868e3d076a0 (patch) | |
tree | ccd61de6bc392a7e3522d6b3cf37c8f610460ef4 /sound/soc/davinci | |
parent | c9eaa447e77efe77b7fa4c953bd62de8297fd6c5 (diff) | |
download | linux-1a95d8d09ef7e40563afd587cce52868e3d076a0.tar.gz linux-1a95d8d09ef7e40563afd587cce52868e3d076a0.tar.bz2 linux-1a95d8d09ef7e40563afd587cce52868e3d076a0.zip |
ASoC: davinci-pcm: Add empty functions for !CONFIG_SND_DAVINCI_SOC builds
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>
Diffstat (limited to 'sound/soc/davinci')
-rw-r--r-- | sound/soc/davinci/davinci-pcm.h | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/sound/soc/davinci/davinci-pcm.h b/sound/soc/davinci/davinci-pcm.h index fbb710c76c08..5fd4737ab398 100644 --- a/sound/soc/davinci/davinci-pcm.h +++ b/sound/soc/davinci/davinci-pcm.h @@ -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 |