diff options
author | Mark Brown <broonie@opensource.wolfsonmicro.com> | 2011-12-29 16:21:49 -0500 |
---|---|---|
committer | Mark Brown <broonie@opensource.wolfsonmicro.com> | 2012-01-20 08:58:24 -0500 |
commit | 1e9c898df0ef659dacbc9ee037f825cc380854cf (patch) | |
tree | 5946570372118fa5812d39a0fe079319998723f4 | |
parent | 42dad0d84a318d5245b8b311644388dae5f521c0 (diff) |
ASoC: Make I2C usage unconditional in WM8955
Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
-rw-r--r-- | sound/soc/codecs/wm8955.c | 6 |
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) | ||
1005 | static __devinit int wm8955_i2c_probe(struct i2c_client *i2c, | 1004 | static __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 | ||
1049 | static int __init wm8955_modinit(void) | 1047 | static 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 | } |
1061 | module_init(wm8955_modinit); | 1057 | module_init(wm8955_modinit); |
1062 | 1058 | ||
1063 | static void __exit wm8955_exit(void) | 1059 | static 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 | } |
1069 | module_exit(wm8955_exit); | 1063 | module_exit(wm8955_exit); |
1070 | 1064 | ||