提交 67e9a2ce 编写于 作者: A Aaro Koskinen 提交者: Sebastian Reichel

hsi: nokia-modem: fix uninitialized device pointer

modem->device was never initialized. This resulted in logs such as:

[  241.386322] (NULL device *): CMT rst line change detected
Signed-off-by: NAaro Koskinen <aaro.koskinen@iki.fi>
Signed-off-by: NSebastian Reichel <sre@kernel.org>
上级 29169f82
......@@ -162,6 +162,7 @@ static int nokia_modem_probe(struct device *dev)
return -ENOMEM;
}
dev_set_drvdata(dev, modem);
modem->device = dev;
irq = irq_of_parse_and_map(np, 0);
if (!irq) {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册