* [PATCH] hsi: nokia-modem: fix uninitialized device pointer
@ 2015-01-04 17:34 Aaro Koskinen
2015-01-04 19:23 ` Sebastian Reichel
0 siblings, 1 reply; 2+ messages in thread
From: Aaro Koskinen @ 2015-01-04 17:34 UTC (permalink / raw)
To: Sebastian Reichel, linux-omap, linux-kernel; +Cc: Aaro Koskinen
modem->device was never initialized. This resulted in logs such as:
[ 241.386322] (NULL device *): CMT rst line change detected
Signed-off-by: Aaro Koskinen <aaro.koskinen@iki.fi>
---
drivers/hsi/clients/nokia-modem.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/drivers/hsi/clients/nokia-modem.c b/drivers/hsi/clients/nokia-modem.c
index f0c2145..eb4dc63 100644
--- a/drivers/hsi/clients/nokia-modem.c
+++ b/drivers/hsi/clients/nokia-modem.c
@@ -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) {
--
2.2.0
^ permalink raw reply related [flat|nested] 2+ messages in thread
end of thread, other threads:[~2015-01-04 19:23 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-01-04 17:34 [PATCH] hsi: nokia-modem: fix uninitialized device pointer Aaro Koskinen
2015-01-04 19:23 ` Sebastian Reichel
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).