ASoC: rt5663: Change the dev getting function in rt5663_irq
authoroder_chiou@realtek.com <oder_chiou@realtek.com>
Mon, 25 Sep 2017 03:11:05 +0000 (11:11 +0800)
committerMark Brown <broonie@kernel.org>
Mon, 25 Sep 2017 16:08:59 +0000 (17:08 +0100)
commita16cc6326d58b32f12f2e60d0b0ec2c8771469a5
treed42765f0cf1ab760242d1d0d630e4dfc2285fbbe
parent2bd6bf03f4c1c59381d62c61d03f6cc3fe71f66e
ASoC: rt5663: Change the dev getting function in rt5663_irq

In the irq handler "rt5663_irq", while the codec is not initialized,
rt5663->codec will be null, and it will cause the kernel panic in the debug
print enabled.

Signed-off-by: Oder Chiou <oder_chiou@realtek.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/codecs/rt5663.c