]> Git Repo - linux.git/commitdiff
ASoC: rt5663: Change the dev getting function in rt5663_irq
author[email protected] <[email protected]>
Mon, 25 Sep 2017 03:11:05 +0000 (11:11 +0800)
committerMark Brown <[email protected]>
Mon, 25 Sep 2017 16:08:59 +0000 (17:08 +0100)
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 <[email protected]>
Signed-off-by: Mark Brown <[email protected]>
sound/soc/codecs/rt5663.c

index ab9e0ebff5a7ffe8c24a026441538c6bd877a733..e45b895d8279e42ea8bbac880f5be31a669f0206 100644 (file)
@@ -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));
This page took 0.080471 seconds and 4 git commands to generate.