diff options
author | Randy Dunlap <randy.dunlap@oracle.com> | 2009-08-10 19:04:39 -0400 |
---|---|---|
committer | Mark Brown <broonie@opensource.wolfsonmicro.com> | 2009-08-11 05:47:25 -0400 |
commit | 17244c24f95ba61a12b6afeab5780a1e3f1a4c57 (patch) | |
tree | 333e814a7d3ccc982853ffd76f3b6bfcae08b861 /sound/soc/soc-cache.c | |
parent | e0c48a18f76415d3ec1ac28e5f7a0df10e2f3d8c (diff) |
ASoC: fix I2C build errors
Fix soc build errors when I2C is built as a loadable module:
(.text+0x5d26b): undefined reference to `i2c_master_send'
soc-cache.c:(.text+0x5d32d): undefined reference to `i2c_transfer'
Signed-off-by: Randy Dunlap <randy.dunlap@oracle.com>
Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
Diffstat (limited to 'sound/soc/soc-cache.c')
-rw-r--r-- | sound/soc/soc-cache.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sound/soc/soc-cache.c b/sound/soc/soc-cache.c index 56ec3f22bf1c..c8ceddc2a26c 100644 --- a/sound/soc/soc-cache.c +++ b/sound/soc/soc-cache.c | |||
@@ -108,7 +108,7 @@ static unsigned int snd_soc_8_16_read(struct snd_soc_codec *codec, | |||
108 | return cache[reg]; | 108 | return cache[reg]; |
109 | } | 109 | } |
110 | 110 | ||
111 | #if defined(CONFIG_I2C) || defined(CONFIG_I2C_MODULE) | 111 | #if defined(CONFIG_I2C) || (defined(CONFIG_I2C_MODULE) && defined(MODULE)) |
112 | static unsigned int snd_soc_8_16_read_i2c(struct snd_soc_codec *codec, | 112 | static unsigned int snd_soc_8_16_read_i2c(struct snd_soc_codec *codec, |
113 | unsigned int r) | 113 | unsigned int r) |
114 | { | 114 | { |
@@ -200,7 +200,7 @@ int snd_soc_codec_set_cache_io(struct snd_soc_codec *codec, | |||
200 | break; | 200 | break; |
201 | 201 | ||
202 | case SND_SOC_I2C: | 202 | case SND_SOC_I2C: |
203 | #if defined(CONFIG_I2C) || defined(CONFIG_I2C_MODULE) | 203 | #if defined(CONFIG_I2C) || (defined(CONFIG_I2C_MODULE) && defined(MODULE)) |
204 | codec->hw_write = (hw_write_t)i2c_master_send; | 204 | codec->hw_write = (hw_write_t)i2c_master_send; |
205 | #endif | 205 | #endif |
206 | if (io_types[i].i2c_read) | 206 | if (io_types[i].i2c_read) |