diff options
author | Arnd Bergmann <arnd@arndb.de> | 2014-04-29 07:18:26 -0400 |
---|---|---|
committer | Mark Brown <broonie@linaro.org> | 2014-04-30 23:32:20 -0400 |
commit | 49e3c6418ba480d95a05814cceecc0eda8545179 (patch) | |
tree | 4744ce384e300359f111d2358f6784535e7a852b | |
parent | c9eaa447e77efe77b7fa4c953bd62de8297fd6c5 (diff) |
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>
-rw-r--r-- | sound/soc/nuc900/Kconfig | 1 | ||||
-rw-r--r-- | sound/soc/nuc900/nuc900-ac97.c | 1 |
2 files changed, 2 insertions, 0 deletions
diff --git a/sound/soc/nuc900/Kconfig b/sound/soc/nuc900/Kconfig index a0ed1c618f60..7f0c954dff6f 100644 --- a/sound/soc/nuc900/Kconfig +++ b/sound/soc/nuc900/Kconfig | |||
@@ -4,6 +4,7 @@ | |||
4 | config SND_SOC_NUC900 | 4 | config SND_SOC_NUC900 |
5 | tristate "SoC Audio for NUC900 series" | 5 | tristate "SoC Audio for NUC900 series" |
6 | depends on ARCH_W90X900 | 6 | depends on ARCH_W90X900 |
7 | select SND_SOC_NUC900_AC97 | ||
7 | help | 8 | help |
8 | This option enables support for AC97 mode on the NUC900 SoC. | 9 | This option enables support for AC97 mode on the NUC900 SoC. |
9 | 10 | ||
diff --git a/sound/soc/nuc900/nuc900-ac97.c b/sound/soc/nuc900/nuc900-ac97.c index 8987bf987e58..f2f67942b229 100644 --- a/sound/soc/nuc900/nuc900-ac97.c +++ b/sound/soc/nuc900/nuc900-ac97.c | |||
@@ -28,6 +28,7 @@ | |||
28 | 28 | ||
29 | static DEFINE_MUTEX(ac97_mutex); | 29 | static DEFINE_MUTEX(ac97_mutex); |
30 | struct nuc900_audio *nuc900_ac97_data; | 30 | struct nuc900_audio *nuc900_ac97_data; |
31 | EXPORT_SYMBOL_GPL(nuc900_ac97_data); | ||
31 | 32 | ||
32 | static int nuc900_checkready(void) | 33 | static int nuc900_checkready(void) |
33 | { | 34 | { |