aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMark Brown <broonie@opensource.wolfsonmicro.com>2011-11-21 07:11:37 -0500
committerMark Brown <broonie@opensource.wolfsonmicro.com>2011-11-22 06:59:50 -0500
commit12a7a709a09aac117b630264cdd526e20d4d0ce2 (patch)
treea60d3c50f0e1265b901e49ec98a3428be4bfde7b
parentf733547aa30b9e85cc5f2739f3c236408157d2ce (diff)
ASoC: Remove conditional I2C usage from tlv320aic3x driver
The driver only supports I2C so doesn't need to do things conditionally. Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com> Acked-by: Jarkko Nikula <jhnikula@gmail.com>
-rw-r--r--sound/soc/codecs/tlv320aic3x.c6
1 files changed, 0 insertions, 6 deletions
diff --git a/sound/soc/codecs/tlv320aic3x.c b/sound/soc/codecs/tlv320aic3x.c
index 14cb5534ce8b..2e2bf18253c8 100644
--- a/sound/soc/codecs/tlv320aic3x.c
+++ b/sound/soc/codecs/tlv320aic3x.c
@@ -1481,7 +1481,6 @@ static struct snd_soc_codec_driver soc_codec_dev_aic3x = {
1481 .resume = aic3x_resume, 1481 .resume = aic3x_resume,
1482}; 1482};
1483 1483
1484#if defined(CONFIG_I2C) || defined(CONFIG_I2C_MODULE)
1485/* 1484/*
1486 * AIC3X 2 wire address can be up to 4 devices with device addresses 1485 * AIC3X 2 wire address can be up to 4 devices with device addresses
1487 * 0x18, 0x19, 0x1A, 0x1B 1486 * 0x18, 0x19, 0x1A, 0x1B
@@ -1548,27 +1547,22 @@ static struct i2c_driver aic3x_i2c_driver = {
1548 .remove = aic3x_i2c_remove, 1547 .remove = aic3x_i2c_remove,
1549 .id_table = aic3x_i2c_id, 1548 .id_table = aic3x_i2c_id,
1550}; 1549};
1551#endif
1552 1550
1553static int __init aic3x_modinit(void) 1551static int __init aic3x_modinit(void)
1554{ 1552{
1555 int ret = 0; 1553 int ret = 0;
1556#if defined(CONFIG_I2C) || defined(CONFIG_I2C_MODULE)
1557 ret = i2c_add_driver(&aic3x_i2c_driver); 1554 ret = i2c_add_driver(&aic3x_i2c_driver);
1558 if (ret != 0) { 1555 if (ret != 0) {
1559 printk(KERN_ERR "Failed to register TLV320AIC3x I2C driver: %d\n", 1556 printk(KERN_ERR "Failed to register TLV320AIC3x I2C driver: %d\n",
1560 ret); 1557 ret);
1561 } 1558 }
1562#endif
1563 return ret; 1559 return ret;
1564} 1560}
1565module_init(aic3x_modinit); 1561module_init(aic3x_modinit);
1566 1562
1567static void __exit aic3x_exit(void) 1563static void __exit aic3x_exit(void)
1568{ 1564{
1569#if defined(CONFIG_I2C) || defined(CONFIG_I2C_MODULE)
1570 i2c_del_driver(&aic3x_i2c_driver); 1565 i2c_del_driver(&aic3x_i2c_driver);
1571#endif
1572} 1566}
1573module_exit(aic3x_exit); 1567module_exit(aic3x_exit);
1574 1568