提交 a16cc632 编写于 作者: O oder_chiou@realtek.com 提交者: Mark Brown

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: NOder Chiou <oder_chiou@realtek.com>
Signed-off-by: NMark Brown <broonie@kernel.org>
上级 2bd6bf03
...@@ -1639,7 +1639,8 @@ static irqreturn_t rt5663_irq(int irq, void *data) ...@@ -1639,7 +1639,8 @@ static irqreturn_t rt5663_irq(int irq, void *data)
{ {
struct rt5663_priv *rt5663 = 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, queue_delayed_work(system_wq, &rt5663->jack_detect_work,
msecs_to_jiffies(250)); msecs_to_jiffies(250));
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册