diff options
author | Ben Zhang <benzh@chromium.org> | 2014-10-20 23:30:13 -0400 |
---|---|---|
committer | Mark Brown <broonie@kernel.org> | 2014-10-23 06:06:06 -0400 |
commit | e29bee098ea1cc9b8537628f3c1cdf60ead83514 (patch) | |
tree | 6c023092cf08552db50681167c471fb9d542d8e1 /sound/soc/codecs/rt5677-spi.c | |
parent | 2d27deb40db74c751c991e96ca91d675f966a0c5 (diff) |
ASoC: rt5677: fix rt5677 spi driver build
Create a separate module for rt5677 spi driver. Without
this patch, the build fails due to multiple defs of
'init_module' and 'cleanup_module'. module_spi_driver()
defines its own module, so it can't be part of the rt5677
module.
Signed-off-by: Ben Zhang <benzh@chromium.org>
Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'sound/soc/codecs/rt5677-spi.c')
-rw-r--r-- | sound/soc/codecs/rt5677-spi.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/sound/soc/codecs/rt5677-spi.c b/sound/soc/codecs/rt5677-spi.c index 11c38f3a9b72..ef6348cb9157 100644 --- a/sound/soc/codecs/rt5677-spi.c +++ b/sound/soc/codecs/rt5677-spi.c | |||
@@ -52,6 +52,7 @@ int rt5677_spi_write(u8 *txbuf, size_t len) | |||
52 | 52 | ||
53 | return status; | 53 | return status; |
54 | } | 54 | } |
55 | EXPORT_SYMBOL_GPL(rt5677_spi_write); | ||
55 | 56 | ||
56 | /** | 57 | /** |
57 | * rt5677_spi_burst_write - Write data to SPI by rt5677 dsp memory address. | 58 | * rt5677_spi_burst_write - Write data to SPI by rt5677 dsp memory address. |
@@ -107,6 +108,7 @@ int rt5677_spi_burst_write(u32 addr, const struct firmware *fw) | |||
107 | 108 | ||
108 | return 0; | 109 | return 0; |
109 | } | 110 | } |
111 | EXPORT_SYMBOL_GPL(rt5677_spi_burst_write); | ||
110 | 112 | ||
111 | static int rt5677_spi_probe(struct spi_device *spi) | 113 | static int rt5677_spi_probe(struct spi_device *spi) |
112 | { | 114 | { |