projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
84bc278
)
ALSA: ASoC: Make OpenFirmware helper include file conditional
author
Mark Brown
<
[email protected]
>
Tue, 29 Jul 2008 10:42:29 +0000
(11:42 +0100)
committer
Jaroslav Kysela
<
[email protected]
>
Tue, 29 Jul 2008 19:32:22 +0000
(21:32 +0200)
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 <
[email protected]
>
Acked-by: Grant Likely <
[email protected]
>
Signed-off-by: Takashi Iwai <
[email protected]
>
Signed-off-by: Jaroslav Kysela <
[email protected]
>
include/sound/soc-of-simple.h
patch
|
blob
|
history
diff --git
a/include/sound/soc-of-simple.h
b/include/sound/soc-of-simple.h
index 696fc513e2347830e42ae0818ad207a19c619aa5..a064e1934a56c2a74de7f438e0ce2c0a4180a9e3 100644
(file)
--- a/
include/sound/soc-of-simple.h
+++ b/
include/sound/soc-of-simple.h
@@
-7,6
+7,8
@@
#ifndef _INCLUDE_SOC_OF_H_
#define _INCLUDE_SOC_OF_H_
+#if defined(CONFIG_SND_SOC_OF_SIMPLE) || defined(CONFIG_SND_SOC_OF_SIMPLE_MODULE)
+
#include <linux/of.h>
#include <sound/soc.h>
@@
-18,4
+20,6
@@
int of_snd_soc_register_platform(struct snd_soc_platform *platform,
struct device_node *node,
struct snd_soc_dai *cpu_dai);
+#endif
+
#endif /* _INCLUDE_SOC_OF_H_ */