summaryrefslogtreecommitdiffstats
path: root/sound
diff options
context:
space:
mode:
authoroder_chiou@realtek.com <oder_chiou@realtek.com>2017-09-25 11:11:05 +0800
committerMark Brown <broonie@kernel.org>2017-09-25 17:08:59 +0100
commita16cc6326d58b32f12f2e60d0b0ec2c8771469a5 (patch)
treed42765f0cf1ab760242d1d0d630e4dfc2285fbbe /sound
parent2bd6bf03f4c1c59381d62c61d03f6cc3fe71f66e (diff)
downloadlinux-a16cc6326d58b32f12f2e60d0b0ec2c8771469a5.tar.gz
linux-a16cc6326d58b32f12f2e60d0b0ec2c8771469a5.tar.bz2
linux-a16cc6326d58b32f12f2e60d0b0ec2c8771469a5.zip
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>
Diffstat (limited to 'sound')
-rw-r--r--sound/soc/codecs/rt5663.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/sound/soc/codecs/rt5663.c b/sound/soc/codecs/rt5663.c
index ab9e0ebff5a7..e45b895d8279 100644
--- a/sound/soc/codecs/rt5663.c
+++ b/sound/soc/codecs/rt5663.c
@@ -1639,7 +1639,8 @@ static irqreturn_t rt5663_irq(int irq, void *data)
{
struct rt5663_priv *rt5663 = data;
- dev_dbg(rt5663->codec->dev, "%s IRQ queue work\n", __func__);
+ dev_dbg(regmap_get_device(rt5663->regmap), "%s IRQ queue work\n",
+ __func__);
queue_delayed_work(system_wq, &rt5663->jack_detect_work,
msecs_to_jiffies(250));