diff options
-rw-r--r-- | sound/soc/intel/byt-max98090.c | 10 |
1 files changed, 3 insertions, 7 deletions
diff --git a/sound/soc/intel/byt-max98090.c b/sound/soc/intel/byt-max98090.c index 3e2e7152ae66..5cfb41ec3fab 100644 --- a/sound/soc/intel/byt-max98090.c +++ b/sound/soc/intel/byt-max98090.c | |||
@@ -118,13 +118,9 @@ static int byt_max98090_init(struct snd_soc_pcm_runtime *runtime) | |||
118 | if (ret) | 118 | if (ret) |
119 | return ret; | 119 | return ret; |
120 | 120 | ||
121 | ret = snd_soc_jack_add_gpiods(card->dev->parent, jack, | 121 | return snd_soc_jack_add_gpiods(card->dev->parent, jack, |
122 | ARRAY_SIZE(hs_jack_gpios), | 122 | ARRAY_SIZE(hs_jack_gpios), |
123 | hs_jack_gpios); | 123 | hs_jack_gpios); |
124 | if (ret) | ||
125 | return ret; | ||
126 | |||
127 | return max98090_mic_detect(codec, jack); | ||
128 | } | 124 | } |
129 | 125 | ||
130 | static struct snd_soc_dai_link byt_max98090_dais[] = { | 126 | static struct snd_soc_dai_link byt_max98090_dais[] = { |