Commit 51f25e7f authored by Takashi Iwai's avatar Takashi Iwai Committed by Mark Brown

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: default avatarTakashi Iwai <tiwai@suse.de>
Signed-off-by: default avatarMark Brown <broonie@kernel.org>
parent 2661112f
...@@ -173,20 +173,8 @@ static int byt_max98090_probe(struct platform_device *pdev) ...@@ -173,20 +173,8 @@ static int byt_max98090_probe(struct platform_device *pdev)
return 0; return 0;
} }
static int byt_max98090_remove(struct platform_device *pdev)
{
struct snd_soc_card *card = platform_get_drvdata(pdev);
struct byt_max98090_private *priv = snd_soc_card_get_drvdata(card);
snd_soc_jack_free_gpios(&priv->jack, ARRAY_SIZE(hs_jack_gpios),
hs_jack_gpios);
return 0;
}
static struct platform_driver byt_max98090_driver = { static struct platform_driver byt_max98090_driver = {
.probe = byt_max98090_probe, .probe = byt_max98090_probe,
.remove = byt_max98090_remove,
.driver = { .driver = {
.name = "byt-max98090", .name = "byt-max98090",
.pm = &snd_soc_pm_ops, .pm = &snd_soc_pm_ops,
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment