aboutsummaryrefslogtreecommitdiffstats
path: root/sound/soc/atmel
diff options
context:
space:
mode:
authorMark Brown <broonie@opensource.wolfsonmicro.com>2009-10-06 11:01:27 -0400
committerMark Brown <broonie@opensource.wolfsonmicro.com>2009-10-06 11:01:27 -0400
commit907bc6c7fc7071b00083fc11e510e47dd93df45d (patch)
tree0697a608561522c00da9e1814974a2eb051bb96d /sound/soc/atmel
parentd2b247a8be57647d1745535acd58169fbcbe431a (diff)
parent2a0f5cb32772e9a9560209e241a80bfbbc31dbc3 (diff)
Merge branch 'for-2.6.32' into for-2.6.33
Diffstat (limited to 'sound/soc/atmel')
-rw-r--r--sound/soc/atmel/sam9g20_wm8731.c36
1 files changed, 0 insertions, 36 deletions
diff --git a/sound/soc/atmel/sam9g20_wm8731.c b/sound/soc/atmel/sam9g20_wm8731.c
index 130b12118d4f..885ba012557e 100644
--- a/sound/soc/atmel/sam9g20_wm8731.c
+++ b/sound/soc/atmel/sam9g20_wm8731.c
@@ -193,38 +193,6 @@ static struct snd_soc_card snd_soc_at91sam9g20ek = {
193 .set_bias_level = at91sam9g20ek_set_bias_level, 193 .set_bias_level = at91sam9g20ek_set_bias_level,
194}; 194};
195 195
196/*
197 * FIXME: This is a temporary bodge to avoid cross-tree merge issues.
198 * New drivers should register the wm8731 I2C device in the machine
199 * setup code (under arch/arm for ARM systems).
200 */
201static int wm8731_i2c_register(void)
202{
203 struct i2c_board_info info;
204 struct i2c_adapter *adapter;
205 struct i2c_client *client;
206
207 memset(&info, 0, sizeof(struct i2c_board_info));
208 info.addr = 0x1b;
209 strlcpy(info.type, "wm8731", I2C_NAME_SIZE);
210
211 adapter = i2c_get_adapter(0);
212 if (!adapter) {
213 printk(KERN_ERR "can't get i2c adapter 0\n");
214 return -ENODEV;
215 }
216
217 client = i2c_new_device(adapter, &info);
218 i2c_put_adapter(adapter);
219 if (!client) {
220 printk(KERN_ERR "can't add i2c device at 0x%x\n",
221 (unsigned int)info.addr);
222 return -ENODEV;
223 }
224
225 return 0;
226}
227
228static struct snd_soc_device at91sam9g20ek_snd_devdata = { 196static struct snd_soc_device at91sam9g20ek_snd_devdata = {
229 .card = &snd_soc_at91sam9g20ek, 197 .card = &snd_soc_at91sam9g20ek,
230 .codec_dev = &soc_codec_dev_wm8731, 198 .codec_dev = &soc_codec_dev_wm8731,
@@ -279,10 +247,6 @@ static int __init at91sam9g20ek_init(void)
279 } 247 }
280 ssc_p->ssc = ssc; 248 ssc_p->ssc = ssc;
281 249
282 ret = wm8731_i2c_register();
283 if (ret != 0)
284 goto err_ssc;
285
286 at91sam9g20ek_snd_device = platform_device_alloc("soc-audio", -1); 250 at91sam9g20ek_snd_device = platform_device_alloc("soc-audio", -1);
287 if (!at91sam9g20ek_snd_device) { 251 if (!at91sam9g20ek_snd_device) {
288 printk(KERN_ERR "ASoC: Platform device allocation failed\n"); 252 printk(KERN_ERR "ASoC: Platform device allocation failed\n");