summaryrefslogtreecommitdiff
path: root/sound/soc/tegra/tegra_wm8903.c
diff options
context:
space:
mode:
authorStephen Warren <swarren@nvidia.com>2012-05-22 22:09:52 (GMT)
committerMark Brown <broonie@opensource.wolfsonmicro.com>2012-06-03 12:06:37 (GMT)
commit9f6328d910ef8df8176ed433aa2de037eba1f656 (patch)
tree383854c3d9f738acafc04dd4b25ed6c45504f4a3 /sound/soc/tegra/tegra_wm8903.c
parentaef9a37c01a63a132d43d65d231dfe515d0f918a (diff)
downloadlinux-9f6328d910ef8df8176ed433aa2de037eba1f656.tar.xz
ASoC: tegra+alc5632: 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. 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_wm8903.c')
0 files changed, 0 insertions, 0 deletions