diff options
author | Axel Lin <axel.lin@gmail.com> | 2010-11-09 04:06:44 -0500 |
---|---|---|
committer | Mark Brown <broonie@opensource.wolfsonmicro.com> | 2010-11-09 12:47:45 -0500 |
commit | b95fccbc025cb5788776ed8b80dba20b24529b15 (patch) | |
tree | 84a8736d4a674bb3d448dd9ec437235d156850cb /sound/soc/soc-core.c | |
parent | 8bced693459cec5c3737f2492a2a8f1233b6614f (diff) |
ASoC: Fix compile error if CONFIG_DEBUG_FS is not configured
Add soc_init_card_debugfs and soc_cleanup_card_debugfs functions to fix below error.
CC sound/soc/soc-core.o
sound/soc/soc-core.c: In function 'soc_probe':
sound/soc/soc-core.c:1689: error: implicit declaration of function 'soc_init_card_debugfs'
sound/soc/soc-core.c: In function 'soc_remove':
sound/soc/soc-core.c:1718: error: implicit declaration of function 'soc_cleanup_card_debugfs'
make[2]: *** [sound/soc/soc-core.o] Error 1
make[1]: *** [sound/soc] Error 2
make: *** [sound] Error 2
Signed-off-by: Axel Lin <axel.lin@gmail.com>
Acked-by: Jarkko Nikula <jhnikula@gmail.com>
Acked-by: Liam Girdwood <lrg@slimlogic.co.uk>
Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
Diffstat (limited to 'sound/soc/soc-core.c')
-rw-r--r-- | sound/soc/soc-core.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/sound/soc/soc-core.c b/sound/soc/soc-core.c index f030521c48d1..c18ce1dc51b8 100644 --- a/sound/soc/soc-core.c +++ b/sound/soc/soc-core.c | |||
@@ -401,6 +401,14 @@ static inline void soc_init_codec_debugfs(struct snd_soc_codec *codec) | |||
401 | static inline void soc_cleanup_codec_debugfs(struct snd_soc_codec *codec) | 401 | static inline void soc_cleanup_codec_debugfs(struct snd_soc_codec *codec) |
402 | { | 402 | { |
403 | } | 403 | } |
404 | |||
405 | static inline void soc_init_card_debugfs(struct snd_soc_card *card) | ||
406 | { | ||
407 | } | ||
408 | |||
409 | static inline void soc_cleanup_card_debugfs(struct snd_soc_card *card) | ||
410 | { | ||
411 | } | ||
404 | #endif | 412 | #endif |
405 | 413 | ||
406 | #ifdef CONFIG_SND_SOC_AC97_BUS | 414 | #ifdef CONFIG_SND_SOC_AC97_BUS |