summaryrefslogtreecommitdiff
path: root/drivers/hsi
diff options
context:
space:
mode:
authorAaro Koskinen <aaro.koskinen@iki.fi>2015-01-04 19:34:13 +0200
committerSebastian Reichel <sre@kernel.org>2015-01-04 20:19:30 +0100
commit67e9a2ce6e070b1e5db2dfe9c61890fc30ae954d (patch)
treef1d9d1705d1cbb7880848ae36d3e627c4c88b4f2 /drivers/hsi
parent29169f823067b07bc2967f64ec4b6c9cd1a714a4 (diff)
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: Aaro Koskinen <aaro.koskinen@iki.fi> Signed-off-by: Sebastian Reichel <sre@kernel.org>
Diffstat (limited to 'drivers/hsi')
-rw-r--r--drivers/hsi/clients/nokia-modem.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/hsi/clients/nokia-modem.c b/drivers/hsi/clients/nokia-modem.c
index f0c21458962c..eb4dc63dbc93 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) {