hsi: nokia-modem: fix uninitialized device pointer
authorAaro Koskinen <aaro.koskinen@iki.fi>
Sun, 4 Jan 2015 17:34:13 +0000 (19:34 +0200)
committerSebastian Reichel <sre@kernel.org>
Sun, 4 Jan 2015 19:19:30 +0000 (20:19 +0100)
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>
drivers/hsi/clients/nokia-modem.c

index f0c2145..eb4dc63 100644 (file)
@@ -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) {