diff options
author | Wang Qing <wangqing@vivo.com> | 2021-12-09 04:20:49 -0800 |
---|---|---|
committer | Thomas Bogendoerfer <tsbogend@alpha.franken.de> | 2021-12-14 10:05:12 +0100 |
commit | 405db98b89256d9a2d12ec1b2cbd471a480417e1 (patch) | |
tree | e8bb4210959398009242973354303cb18baefdb1 /arch/mips/ralink/ill_acc.c | |
parent | 4317892db474ddcf0f9d4a9bca8e0d2ddb1d0ab9 (diff) | |
download | linux-405db98b89256d9a2d12ec1b2cbd471a480417e1.tar.gz linux-405db98b89256d9a2d12ec1b2cbd471a480417e1.tar.bz2 linux-405db98b89256d9a2d12ec1b2cbd471a480417e1.zip |
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/ralink/ill_acc.c')
-rw-r--r-- | arch/mips/ralink/ill_acc.c | 1 |
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); |