mirror of
https://github.com/torvalds/linux.git
synced 2024-11-23 12:42:02 +00:00
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: Wang Qing <wangqing@vivo.com> Signed-off-by: Thomas Bogendoerfer <tsbogend@alpha.franken.de>
This commit is contained in:
parent
4317892db4
commit
405db98b89
@ -65,6 +65,7 @@ static int __init ill_acc_of_setup(void)
|
|||||||
}
|
}
|
||||||
|
|
||||||
irq = irq_of_parse_and_map(np, 0);
|
irq = irq_of_parse_and_map(np, 0);
|
||||||
|
of_node_put(np);
|
||||||
if (!irq) {
|
if (!irq) {
|
||||||
dev_err(&pdev->dev, "failed to get irq\n");
|
dev_err(&pdev->dev, "failed to get irq\n");
|
||||||
put_device(&pdev->dev);
|
put_device(&pdev->dev);
|
||||||
|
Loading…
Reference in New Issue
Block a user