ASoC: rt5645: Init jack_detect_work before registering irq
commitd83057a32525626d96217f0112c7197b223180fe
authorNicolas Boichat <drinkcat@chromium.org>
Fri, 5 Jun 2015 10:42:12 +0000 (5 18:42 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 3 Aug 2015 16:29:03 +0000 (3 09:29 -0700)
tree23b06d5e7927b686dfd7c848d99dac6787b95b19
parentb955267c9fd99df9a4fcf1b2b570c3c1fa89d8ba
ASoC: rt5645: Init jack_detect_work before registering irq

commit 7ea3470a7277380248135a592a849e1c27960b2f upstream.

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>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
sound/soc/codecs/rt5645.c