Skip to content

Commit a16cc63

Browse files
oder-chioubroonie
authored andcommitted
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>
1 parent 2bd6bf0 commit a16cc63

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

sound/soc/codecs/rt5663.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1639,7 +1639,8 @@ static irqreturn_t rt5663_irq(int irq, void *data)
16391639
{
16401640
struct rt5663_priv *rt5663 = data;
16411641

1642-
dev_dbg(rt5663->codec->dev, "%s IRQ queue work\n", __func__);
1642+
dev_dbg(regmap_get_device(rt5663->regmap), "%s IRQ queue work\n",
1643+
__func__);
16431644

16441645
queue_delayed_work(system_wq, &rt5663->jack_detect_work,
16451646
msecs_to_jiffies(250));

0 commit comments

Comments
 (0)