]> git.karo-electronics.de Git - karo-tx-linux.git/blobdiff - include/sound/soc-of-simple.h
Merge branch 'for-linus' of git://git.open-osd.org/linux-open-osd
[karo-tx-linux.git] / include / sound / soc-of-simple.h
index 696fc513e2347830e42ae0818ad207a19c619aa5..a064e1934a56c2a74de7f438e0ce2c0a4180a9e3 100644 (file)
@@ -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_ */