]> git.baikalelectronics.ru Git - kernel.git/commit
fpga: stratix10-soc: fix wrong of_node_put() in init function
authorNicolas Saenz Julienne <nsaenzjulienne@suse.de>
Sat, 26 Jan 2019 16:38:29 +0000 (10:38 -0600)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 31 Jan 2019 15:19:48 +0000 (16:19 +0100)
commit0c0b231df713d47006874ee14114080816dbfdad
tree21149016d32f38b39f88a9ed179dd5b9f1588499
parentab66b3948f922481e8870ae07132169fdca916dc
fpga: stratix10-soc: fix wrong of_node_put() in init function

After finding a "firmware" dt node stratix10 tries to match it's
compatible string with it. To do so it's calling of_find_matching_node()
which already takes care of decreasing the refcount on the "firmware"
node. We are then incorrectly decreasing the refcount on that node
again.

This patch removes the unwarranted call to of_node_put().

Fixes: 0bd2d81a520e ("fpga: add intel stratix10 soc fpga manager driver")
Signed-off-by: Nicolas Saenz Julienne <nsaenzjulienne@suse.de>
Acked-by: Alan Tull <atull@kernel.org>
Acked-by: Moritz Fischer <mdf@kernel.org>
[atull: remove unnecessary braces]
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/fpga/stratix10-soc.c