ASoC: jack: Fix race in snd_soc_jack_add_gpios
authorLars-Peter Clausen <lars@metafoo.de>
Fri, 31 Jul 2009 19:15:25 +0000 (21:15 +0200)
committerMark Brown <broonie@opensource.wolfsonmicro.com>
Fri, 31 Jul 2009 21:38:43 +0000 (22:38 +0100)
commitb8e22c1fe375a8c3b3e4fd7c569cb8932607bef3
tree1295dc0046a5d716bcc1b90757345a6ce64ca08e
parent77ee09c67e051a5ebd19a53ba3945dbdc8d21b3c
ASoC: jack: Fix race in snd_soc_jack_add_gpios

The irq can fire as soon as it has been requested, thus all fields accessed
from within the irq handler must be initialized prior to requesting the irq.

Signed-off-by: Lars-Peter Clausen <lars@metafoo.de>
Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
sound/soc/soc-jack.c