aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMark Brown <broonie@opensource.wolfsonmicro.com>2011-12-29 16:21:49 -0500
committerMark Brown <broonie@opensource.wolfsonmicro.com>2012-01-20 08:58:24 -0500
commit1e9c898df0ef659dacbc9ee037f825cc380854cf (patch)
tree5946570372118fa5812d39a0fe079319998723f4
parent42dad0d84a318d5245b8b311644388dae5f521c0 (diff)
ASoC: Make I2C usage unconditional in WM8955
Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
-rw-r--r--sound/soc/codecs/wm8955.c6
1 files changed, 0 insertions, 6 deletions
diff --git a/sound/soc/codecs/wm8955.c b/sound/soc/codecs/wm8955.c
index 924548182d58..adcfdcaa9fbc 100644
--- a/sound/soc/codecs/wm8955.c
+++ b/sound/soc/codecs/wm8955.c
@@ -1001,7 +1001,6 @@ static struct snd_soc_codec_driver soc_codec_dev_wm8955 = {
1001 .reg_cache_default = wm8955_reg, 1001 .reg_cache_default = wm8955_reg,
1002}; 1002};
1003 1003
1004#if defined(CONFIG_I2C) || defined(CONFIG_I2C_MODULE)
1005static __devinit int wm8955_i2c_probe(struct i2c_client *i2c, 1004static __devinit int wm8955_i2c_probe(struct i2c_client *i2c,
1006 const struct i2c_device_id *id) 1005 const struct i2c_device_id *id)
1007{ 1006{
@@ -1044,27 +1043,22 @@ static struct i2c_driver wm8955_i2c_driver = {
1044 .remove = __devexit_p(wm8955_i2c_remove), 1043 .remove = __devexit_p(wm8955_i2c_remove),
1045 .id_table = wm8955_i2c_id, 1044 .id_table = wm8955_i2c_id,
1046}; 1045};
1047#endif
1048 1046
1049static int __init wm8955_modinit(void) 1047static int __init wm8955_modinit(void)
1050{ 1048{
1051 int ret = 0; 1049 int ret = 0;
1052#if defined(CONFIG_I2C) || defined(CONFIG_I2C_MODULE)
1053 ret = i2c_add_driver(&wm8955_i2c_driver); 1050 ret = i2c_add_driver(&wm8955_i2c_driver);
1054 if (ret != 0) { 1051 if (ret != 0) {
1055 printk(KERN_ERR "Failed to register WM8955 I2C driver: %d\n", 1052 printk(KERN_ERR "Failed to register WM8955 I2C driver: %d\n",
1056 ret); 1053 ret);
1057 } 1054 }
1058#endif
1059 return ret; 1055 return ret;
1060} 1056}
1061module_init(wm8955_modinit); 1057module_init(wm8955_modinit);
1062 1058
1063static void __exit wm8955_exit(void) 1059static void __exit wm8955_exit(void)
1064{ 1060{
1065#if defined(CONFIG_I2C) || defined(CONFIG_I2C_MODULE)
1066 i2c_del_driver(&wm8955_i2c_driver); 1061 i2c_del_driver(&wm8955_i2c_driver);
1067#endif
1068} 1062}
1069module_exit(wm8955_exit); 1063module_exit(wm8955_exit);
1070 1064