Skip to content

Commit

Permalink
hsi: nokia-modem: fix uninitialized device pointer
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Aaro Koskinen authored and Sebastian Reichel committed Jan 4, 2015
1 parent 29169f8 commit 67e9a2c
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions drivers/hsi/clients/nokia-modem.c
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit 67e9a2c

Please sign in to comment.