summaryrefslogtreecommitdiffstats
path: root/sound/soc/tegra/tegra_alc5632.c
diff options
context:
space:
mode:
authorStephen Warren2012-05-23 00:08:56 +0200
committerMark Brown2012-06-03 14:06:36 +0200
commite44fbbd45896e684d44391aaf881dd3e36bd1a16 (patch)
treedaebe04fd61db6e9f6b3ff093362696770728a6f /sound/soc/tegra/tegra_alc5632.c
parentASoC: tegra+wm8903: Use devm_gpio_request_one (diff)
downloadkernel-qcow2-linux-e44fbbd45896e684d44391aaf881dd3e36bd1a16.tar.gz
kernel-qcow2-linux-e44fbbd45896e684d44391aaf881dd3e36bd1a16.tar.xz
kernel-qcow2-linux-e44fbbd45896e684d44391aaf881dd3e36bd1a16.zip
ASoC: tegra+wm8903: unconditionally free jack GPIOs in remove
The headphone jack GPIOs are added/initialized in the DAI link's init() method, and hence in theory may not always have been added before remove() is called in some unusual cases. In order to prevent calling snd_soc_jack_free_gpios() if snd_soc_jack_add_gpios() had not been, the code kept track of the initialization state to avoid the free call when necessary. However, it appears that snd_soc_jack_free_gpios() is robust in the face of being called without snd_soc_jack_add_gpios() first succeeding, so there is little point manually tracking this information. Hence, remove the tracking code. Almost all other machine drivers already operate this way. Signed-off-by: Stephen Warren <swarren@nvidia.com> Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
Diffstat (limited to 'sound/soc/tegra/tegra_alc5632.c')
0 files changed, 0 insertions, 0 deletions