ASoC: rt5645: Init jack_detect_work before registering irq
authorNicolas Boichat <drinkcat@chromium.org>
Fri, 5 Jun 2015 10:42:12 +0000 (18:42 +0800)
committerMark Brown <broonie@kernel.org>
Fri, 5 Jun 2015 17:15:12 +0000 (18:15 +0100)
commit7ea3470a7277380248135a592a849e1c27960b2f
treeeb7926b63b71fbb7143688edbb500912f68000cf
parent692768c4b28ddfc96f5ff752048826b859bd71ca
ASoC: rt5645: Init jack_detect_work before registering irq

Prevents frequent panic on boot, if the irq handler rt5645_irq
gets called before the workqueue rt5645_jack_detect_work is
initialized.

Signed-off-by: Nicolas Boichat <drinkcat@chromium.org>
Signed-off-by: Mark Brown <broonie@kernel.org>
Cc: stable@vger.kernel.org
sound/soc/codecs/rt5645.c