Browse Source

ASoC: nuc900: export nuc900_ac97_data

The symbol "nuc900_ac97_data" is used by the nuc900_pcm driver,
which may be a loadable module, so we should export it.

If one tries to build SND_SOC_NUC900 without SND_SOC_NUC900_AC97,
the kernel fails to link because of the reference to nuc900_ac97_data.

Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Signed-off-by: Xia Kaixu <kaixu.xia@linaro.org>
Signed-off-by: Mark Brown <broonie@linaro.org>
Arnd Bergmann 11 years ago
parent
commit
49e3c6418b
2 changed files with 2 additions and 0 deletions
  1. 1 0
      sound/soc/nuc900/Kconfig
  2. 1 0
      sound/soc/nuc900/nuc900-ac97.c

+ 1 - 0
sound/soc/nuc900/Kconfig

@@ -4,6 +4,7 @@
 config SND_SOC_NUC900
 	tristate "SoC Audio for NUC900 series"
 	depends on ARCH_W90X900
+	select SND_SOC_NUC900_AC97
 	help
 	  This option enables support for AC97 mode on the NUC900 SoC.
 

+ 1 - 0
sound/soc/nuc900/nuc900-ac97.c

@@ -28,6 +28,7 @@
 
 static DEFINE_MUTEX(ac97_mutex);
 struct nuc900_audio *nuc900_ac97_data;
+EXPORT_SYMBOL_GPL(nuc900_ac97_data);
 
 static int nuc900_checkready(void)
 {