diff options
Diffstat (limited to 'sound/soc/codecs/wm8988.c')
-rw-r--r-- | sound/soc/codecs/wm8988.c | 8 |
1 files changed, 0 insertions, 8 deletions
diff --git a/sound/soc/codecs/wm8988.c b/sound/soc/codecs/wm8988.c index a55e1c2c382e..424bbf752f3f 100644 --- a/sound/soc/codecs/wm8988.c +++ b/sound/soc/codecs/wm8988.c | |||
@@ -810,16 +810,8 @@ static int wm8988_resume(struct snd_soc_codec *codec) | |||
810 | 810 | ||
811 | static int wm8988_probe(struct snd_soc_codec *codec) | 811 | static int wm8988_probe(struct snd_soc_codec *codec) |
812 | { | 812 | { |
813 | struct wm8988_priv *wm8988 = snd_soc_codec_get_drvdata(codec); | ||
814 | int ret = 0; | 813 | int ret = 0; |
815 | 814 | ||
816 | codec->control_data = wm8988->regmap; | ||
817 | ret = snd_soc_codec_set_cache_io(codec, 7, 9, SND_SOC_REGMAP); | ||
818 | if (ret < 0) { | ||
819 | dev_err(codec->dev, "Failed to set cache I/O: %d\n", ret); | ||
820 | return ret; | ||
821 | } | ||
822 | |||
823 | ret = wm8988_reset(codec); | 815 | ret = wm8988_reset(codec); |
824 | if (ret < 0) { | 816 | if (ret < 0) { |
825 | dev_err(codec->dev, "Failed to issue reset\n"); | 817 | dev_err(codec->dev, "Failed to issue reset\n"); |