aboutsummaryrefslogtreecommitdiffstats
path: root/include/sound/soc-of-simple.h
diff options
context:
space:
mode:
authorMark Brown <broonie@opensource.wolfsonmicro.com>2008-07-29 06:42:29 -0400
committerJaroslav Kysela <perex@perex.cz>2008-07-29 15:32:22 -0400
commitb78ddb10704a7f930e5e631de8227c78a6676a1b (patch)
tree7b143dd5c1ea81690c19f51833b87eef5bfc97af /include/sound/soc-of-simple.h
parent84bc278b1f04920e867e4b46e094bcc066393d41 (diff)
ALSA: ASoC: Make OpenFirmware helper include file conditional
The OpenFirmware API headers don't build on all platforms so ensure that they are not included unless they are being used. Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com> Acked-by: Grant Likely <grant.likely@secretlab.ca> Signed-off-by: Takashi Iwai <tiwai@suse.de> Signed-off-by: Jaroslav Kysela <perex@perex.cz>
Diffstat (limited to 'include/sound/soc-of-simple.h')
-rw-r--r--include/sound/soc-of-simple.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/include/sound/soc-of-simple.h b/include/sound/soc-of-simple.h
index 696fc513e234..a064e1934a56 100644
--- a/include/sound/soc-of-simple.h
+++ b/include/sound/soc-of-simple.h
@@ -7,6 +7,8 @@
7#ifndef _INCLUDE_SOC_OF_H_ 7#ifndef _INCLUDE_SOC_OF_H_
8#define _INCLUDE_SOC_OF_H_ 8#define _INCLUDE_SOC_OF_H_
9 9
10#if defined(CONFIG_SND_SOC_OF_SIMPLE) || defined(CONFIG_SND_SOC_OF_SIMPLE_MODULE)
11
10#include <linux/of.h> 12#include <linux/of.h>
11#include <sound/soc.h> 13#include <sound/soc.h>
12 14
@@ -18,4 +20,6 @@ int of_snd_soc_register_platform(struct snd_soc_platform *platform,
18 struct device_node *node, 20 struct device_node *node,
19 struct snd_soc_dai *cpu_dai); 21 struct snd_soc_dai *cpu_dai);
20 22
23#endif
24
21#endif /* _INCLUDE_SOC_OF_H_ */ 25#endif /* _INCLUDE_SOC_OF_H_ */