summaryrefslogtreecommitdiff
path: root/arch/mips
diff options
context:
space:
mode:
authorWang Qing <wangqing@vivo.com>2021-12-09 04:20:49 -0800
committerThomas Bogendoerfer <tsbogend@alpha.franken.de>2021-12-14 10:05:12 +0100
commit405db98b89256d9a2d12ec1b2cbd471a480417e1 (patch)
treee8bb4210959398009242973354303cb18baefdb1 /arch/mips
parent4317892db474ddcf0f9d4a9bca8e0d2ddb1d0ab9 (diff)
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>
Diffstat (limited to 'arch/mips')
-rw-r--r--arch/mips/ralink/ill_acc.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/arch/mips/ralink/ill_acc.c b/arch/mips/ralink/ill_acc.c
index bdf53807d7c2..115a69fc20ca 100644
--- a/arch/mips/ralink/ill_acc.c
+++ b/arch/mips/ralink/ill_acc.c
@@ -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);