diff options
author | Takashi Iwai <tiwai@suse.de> | 2017-08-22 07:59:47 -0400 |
---|---|---|
committer | Mark Brown <broonie@kernel.org> | 2017-08-22 08:38:47 -0400 |
commit | 51f25e7f9270378cee0526184ecaaae6c847a5f6 (patch) | |
tree | cf8709b285fec01cec8639ed098d53655813d0cb | |
parent | 2661112fcc5fe555130f383a21e6ce5152570403 (diff) |
ASoC: intel: Remove superfluous snd_soc_jack_free_gpios() call
Since jack gpios are managed via devres, we don't have to call
snd_jack_free_gpios() at release any longer.
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Signed-off-by: Mark Brown <broonie@kernel.org>
-rw-r--r-- | sound/soc/intel/boards/byt-max98090.c | 12 |
1 files changed, 0 insertions, 12 deletions
diff --git a/sound/soc/intel/boards/byt-max98090.c b/sound/soc/intel/boards/byt-max98090.c index 047be7fa0ce9..0f8b8209c020 100644 --- a/sound/soc/intel/boards/byt-max98090.c +++ b/sound/soc/intel/boards/byt-max98090.c | |||
@@ -173,20 +173,8 @@ static int byt_max98090_probe(struct platform_device *pdev) | |||
173 | return 0; | 173 | return 0; |
174 | } | 174 | } |
175 | 175 | ||
176 | static int byt_max98090_remove(struct platform_device *pdev) | ||
177 | { | ||
178 | struct snd_soc_card *card = platform_get_drvdata(pdev); | ||
179 | struct byt_max98090_private *priv = snd_soc_card_get_drvdata(card); | ||
180 | |||
181 | snd_soc_jack_free_gpios(&priv->jack, ARRAY_SIZE(hs_jack_gpios), | ||
182 | hs_jack_gpios); | ||
183 | |||
184 | return 0; | ||
185 | } | ||
186 | |||
187 | static struct platform_driver byt_max98090_driver = { | 176 | static struct platform_driver byt_max98090_driver = { |
188 | .probe = byt_max98090_probe, | 177 | .probe = byt_max98090_probe, |
189 | .remove = byt_max98090_remove, | ||
190 | .driver = { | 178 | .driver = { |
191 | .name = "byt-max98090", | 179 | .name = "byt-max98090", |
192 | .pm = &snd_soc_pm_ops, | 180 | .pm = &snd_soc_pm_ops, |