diff options
author | Takashi Iwai <tiwai@suse.de> | 2017-08-22 13:59:44 +0200 |
---|---|---|
committer | Mark Brown <broonie@kernel.org> | 2017-08-22 13:38:35 +0100 |
commit | bd29ae969042c87413157c02d4f2a787d0212da3 (patch) | |
tree | 2780978ae938a2f83e385e37892fac79b6e0bfd6 /sound/soc/fsl/imx-es8328.c | |
parent | 77a4525bc282b7072ebda5d6f6925ca6d604a16f (diff) | |
download | linux-bd29ae969042c87413157c02d4f2a787d0212da3.tar.bz2 |
ASoC: jack: Manage gpios via devres
Let's be lazy -- this patch adds the devres code to
snd_soc_jack_add_gpios() for releasing the gpio resources at device
removal automagically. After this patch, you don't have to call
snd_soc_jack_free_gpios() manually as long as it's managed from the
machine driver.
What about the gpios assigned in other levels? Well, you might still
need to free the resources manually, depending on how the component
unbind works.
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'sound/soc/fsl/imx-es8328.c')
0 files changed, 0 insertions, 0 deletions