summaryrefslogtreecommitdiffstats
path: root/drivers/hsi
diff options
context:
space:
mode:
authorAaro Koskinen <aaro.koskinen@iki.fi>2015-01-04 18:34:13 +0100
committerSebastian Reichel <sre@kernel.org>2015-01-04 20:19:30 +0100
commit67e9a2ce6e070b1e5db2dfe9c61890fc30ae954d (patch)
treef1d9d1705d1cbb7880848ae36d3e627c4c88b4f2 /drivers/hsi
parentMerge tag 'sound-3.19-rc2' of git://git.kernel.org/pub/scm/linux/kernel/git/t... (diff)
downloadlinux-67e9a2ce6e070b1e5db2dfe9c61890fc30ae954d.tar.xz
linux-67e9a2ce6e070b1e5db2dfe9c61890fc30ae954d.zip
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) {