aboutsummaryrefslogtreecommitdiffstats
path: root/sound/soc/codecs/wm8978.c
diff options
context:
space:
mode:
authorMark Brown <broonie@opensource.wolfsonmicro.com>2011-12-29 06:12:45 -0500
committerMark Brown <broonie@opensource.wolfsonmicro.com>2012-01-20 08:58:18 -0500
commit0d6df67583bb40fdc365210740bcce0bd27420f7 (patch)
tree0682493a719c5063763ebff8616ec12b00ea60b2 /sound/soc/codecs/wm8978.c
parentfed22007113cb857e917913ce016d9b539dc3a80 (diff)
ASoC: Make WM8978 I2C usage unconditional
The driver only supports I2C. Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
Diffstat (limited to 'sound/soc/codecs/wm8978.c')
-rw-r--r--sound/soc/codecs/wm8978.c6
1 files changed, 0 insertions, 6 deletions
diff --git a/sound/soc/codecs/wm8978.c b/sound/soc/codecs/wm8978.c
index 85d514d63a4c..0b1f7ada17bc 100644
--- a/sound/soc/codecs/wm8978.c
+++ b/sound/soc/codecs/wm8978.c
@@ -1001,7 +1001,6 @@ static struct snd_soc_codec_driver soc_codec_dev_wm8978 = {
1001 .reg_cache_default = wm8978_reg, 1001 .reg_cache_default = wm8978_reg,
1002}; 1002};
1003 1003
1004#if defined(CONFIG_I2C) || defined(CONFIG_I2C_MODULE)
1005static __devinit int wm8978_i2c_probe(struct i2c_client *i2c, 1004static __devinit int wm8978_i2c_probe(struct i2c_client *i2c,
1006 const struct i2c_device_id *id) 1005 const struct i2c_device_id *id)
1007{ 1006{
@@ -1043,27 +1042,22 @@ static struct i2c_driver wm8978_i2c_driver = {
1043 .remove = __devexit_p(wm8978_i2c_remove), 1042 .remove = __devexit_p(wm8978_i2c_remove),
1044 .id_table = wm8978_i2c_id, 1043 .id_table = wm8978_i2c_id,
1045}; 1044};
1046#endif
1047 1045
1048static int __init wm8978_modinit(void) 1046static int __init wm8978_modinit(void)
1049{ 1047{
1050 int ret = 0; 1048 int ret = 0;
1051#if defined(CONFIG_I2C) || defined(CONFIG_I2C_MODULE)
1052 ret = i2c_add_driver(&wm8978_i2c_driver); 1049 ret = i2c_add_driver(&wm8978_i2c_driver);
1053 if (ret != 0) { 1050 if (ret != 0) {
1054 printk(KERN_ERR "Failed to register WM8978 I2C driver: %d\n", 1051 printk(KERN_ERR "Failed to register WM8978 I2C driver: %d\n",
1055 ret); 1052 ret);
1056 } 1053 }
1057#endif
1058 return ret; 1054 return ret;
1059} 1055}
1060module_init(wm8978_modinit); 1056module_init(wm8978_modinit);
1061 1057
1062static void __exit wm8978_exit(void) 1058static void __exit wm8978_exit(void)
1063{ 1059{
1064#if defined(CONFIG_I2C) || defined(CONFIG_I2C_MODULE)
1065 i2c_del_driver(&wm8978_i2c_driver); 1060 i2c_del_driver(&wm8978_i2c_driver);
1066#endif
1067} 1061}
1068module_exit(wm8978_exit); 1062module_exit(wm8978_exit);
1069 1063