aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMark Brown <broonie@opensource.wolfsonmicro.com>2011-12-29 05:59:39 -0500
committerMark Brown <broonie@opensource.wolfsonmicro.com>2012-01-20 08:58:21 -0500
commit542cc361de509798b311999ada07ebf2bd5673cf (patch)
tree250c0b4b7fbecbf8804a63c77c8707c3fa9f1afa
parentd3398ff05907167f463e119421b053ce043741d1 (diff)
ASoC: Make WM8971 I2C usage unconditional
The driver only supports I2C so no need to worry about SPI only systems. Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
-rw-r--r--sound/soc/codecs/wm8971.c6
1 files changed, 0 insertions, 6 deletions
diff --git a/sound/soc/codecs/wm8971.c b/sound/soc/codecs/wm8971.c
index 4af893601f00..a1db1509dcf2 100644
--- a/sound/soc/codecs/wm8971.c
+++ b/sound/soc/codecs/wm8971.c
@@ -688,7 +688,6 @@ static struct snd_soc_codec_driver soc_codec_dev_wm8971 = {
688 .reg_cache_default = wm8971_reg, 688 .reg_cache_default = wm8971_reg,
689}; 689};
690 690
691#if defined(CONFIG_I2C) || defined(CONFIG_I2C_MODULE)
692static __devinit int wm8971_i2c_probe(struct i2c_client *i2c, 691static __devinit int wm8971_i2c_probe(struct i2c_client *i2c,
693 const struct i2c_device_id *id) 692 const struct i2c_device_id *id)
694{ 693{
@@ -731,27 +730,22 @@ static struct i2c_driver wm8971_i2c_driver = {
731 .remove = __devexit_p(wm8971_i2c_remove), 730 .remove = __devexit_p(wm8971_i2c_remove),
732 .id_table = wm8971_i2c_id, 731 .id_table = wm8971_i2c_id,
733}; 732};
734#endif
735 733
736static int __init wm8971_modinit(void) 734static int __init wm8971_modinit(void)
737{ 735{
738 int ret = 0; 736 int ret = 0;
739#if defined(CONFIG_I2C) || defined(CONFIG_I2C_MODULE)
740 ret = i2c_add_driver(&wm8971_i2c_driver); 737 ret = i2c_add_driver(&wm8971_i2c_driver);
741 if (ret != 0) { 738 if (ret != 0) {
742 printk(KERN_ERR "Failed to register WM8971 I2C driver: %d\n", 739 printk(KERN_ERR "Failed to register WM8971 I2C driver: %d\n",
743 ret); 740 ret);
744 } 741 }
745#endif
746 return ret; 742 return ret;
747} 743}
748module_init(wm8971_modinit); 744module_init(wm8971_modinit);
749 745
750static void __exit wm8971_exit(void) 746static void __exit wm8971_exit(void)
751{ 747{
752#if defined(CONFIG_I2C) || defined(CONFIG_I2C_MODULE)
753 i2c_del_driver(&wm8971_i2c_driver); 748 i2c_del_driver(&wm8971_i2c_driver);
754#endif
755} 749}
756module_exit(wm8971_exit); 750module_exit(wm8971_exit);
757 751