aboutsummaryrefslogtreecommitdiffstats
path: root/sound/soc/codecs/wm8750.c
diff options
context:
space:
mode:
Diffstat (limited to 'sound/soc/codecs/wm8750.c')
-rw-r--r--sound/soc/codecs/wm8750.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/sound/soc/codecs/wm8750.c b/sound/soc/codecs/wm8750.c
index 34d846587759..9847aa064d6b 100644
--- a/sound/soc/codecs/wm8750.c
+++ b/sound/soc/codecs/wm8750.c
@@ -934,7 +934,7 @@ static int wm8750_probe(struct platform_device *pdev)
934 struct wm8750_setup_data *setup = socdev->codec_data; 934 struct wm8750_setup_data *setup = socdev->codec_data;
935 struct snd_soc_codec *codec; 935 struct snd_soc_codec *codec;
936 struct wm8750_priv *wm8750; 936 struct wm8750_priv *wm8750;
937 int ret = 0; 937 int ret;
938 938
939 pr_info("WM8750 Audio Codec %s", WM8750_VERSION); 939 pr_info("WM8750 Audio Codec %s", WM8750_VERSION);
940 codec = kzalloc(sizeof(struct snd_soc_codec), GFP_KERNEL); 940 codec = kzalloc(sizeof(struct snd_soc_codec), GFP_KERNEL);
@@ -955,13 +955,13 @@ static int wm8750_probe(struct platform_device *pdev)
955 wm8750_socdev = socdev; 955 wm8750_socdev = socdev;
956 INIT_DELAYED_WORK(&codec->delayed_work, wm8750_work); 956 INIT_DELAYED_WORK(&codec->delayed_work, wm8750_work);
957 957
958 ret = -ENODEV;
959
958#if defined(CONFIG_I2C) || defined(CONFIG_I2C_MODULE) 960#if defined(CONFIG_I2C) || defined(CONFIG_I2C_MODULE)
959 if (setup->i2c_address) { 961 if (setup->i2c_address) {
960 codec->hw_write = (hw_write_t)i2c_master_send; 962 codec->hw_write = (hw_write_t)i2c_master_send;
961 ret = wm8750_add_i2c_device(pdev, setup); 963 ret = wm8750_add_i2c_device(pdev, setup);
962 } 964 }
963#else
964 /* Add other interfaces here */
965#endif 965#endif
966 966
967 if (ret != 0) { 967 if (ret != 0) {