ASoC: nuc900: export nuc900_ac97_data
authorArnd Bergmann <arnd@arndb.de>
Tue, 29 Apr 2014 11:18:26 +0000 (19:18 +0800)
committerMark Brown <broonie@linaro.org>
Thu, 1 May 2014 03:32:20 +0000 (20:32 -0700)
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>
sound/soc/nuc900/Kconfig
sound/soc/nuc900/nuc900-ac97.c

index a0ed1c618f6080a3c3536ebcd42e9dd0e1213687..7f0c954dff6f148b5eb4df78d6029b12543d74e6 100644 (file)
@@ -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.
 
index 8987bf987e584f6ba7a53b93516056dfbf5bc9b5..f2f67942b2294798fdcee596d5ed82142c7d09c1 100644 (file)
@@ -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)
 {