ASoC: fsl: Remove superfluous snd_soc_jack_free_gpios() call
authorTakashi Iwai <tiwai@suse.de>
Tue, 22 Aug 2017 11:59:45 +0000 (13:59 +0200)
committerMark Brown <broonie@kernel.org>
Tue, 22 Aug 2017 12:38:39 +0000 (13:38 +0100)
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>
sound/soc/fsl/imx-es8328.c

index 20e7400e2611e41ef057d9b2e22413a7c6a73c98..9953438086e4783f9fd6ea52a26eb99a0e9da00b 100644 (file)
@@ -203,9 +203,6 @@ static int imx_es8328_remove(struct platform_device *pdev)
 {
        struct imx_es8328_data *data = platform_get_drvdata(pdev);
 
-       snd_soc_jack_free_gpios(&headset_jack, ARRAY_SIZE(headset_jack_gpios),
-                               headset_jack_gpios);
-
        snd_soc_unregister_card(&data->card);
 
        return 0;