Commit 405db98b authored by Wang Qing's avatar Wang Qing Committed by Thomas Bogendoerfer

mips: ralink: add missing of_node_put() call in ill_acc_of_setup()

of_find_compatible_node() takes a reference to the device_node
which needs to be dropped when done.
Signed-off-by: default avatarWang Qing <wangqing@vivo.com>
Signed-off-by: default avatarThomas Bogendoerfer <tsbogend@alpha.franken.de>
parent 4317892d
......@@ -65,6 +65,7 @@ static int __init ill_acc_of_setup(void)
}
irq = irq_of_parse_and_map(np, 0);
of_node_put(np);
if (!irq) {
dev_err(&pdev->dev, "failed to get irq\n");
put_device(&pdev->dev);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment