]> git.baikalelectronics.ru Git - kernel.git/commit
ethernet: fman: fix wrong of_node_put() in probe function
authorNicolas Saenz Julienne <nsaenzjulienne@suse.de>
Mon, 3 Dec 2018 12:21:01 +0000 (13:21 +0100)
committerDavid S. Miller <davem@davemloft.net>
Wed, 5 Dec 2018 04:42:35 +0000 (20:42 -0800)
commitbe96542c3b5615bd64d11b0769f60a5953f8a076
treec135bc75df1285eb58465a4430c86ef472624e1d
parentf9041f475260d00d255afc88783f1fbd0b42ef43
ethernet: fman: fix wrong of_node_put() in probe function

After getting a reference to the platform device's of_node the probe
function ends up calling of_find_matching_node() using the node as an
argument. The function takes care of decreasing the refcount on it. We
are then incorrectly decreasing the refcount on that node again.

This patch removes the unwarranted call to of_node_put().

Fixes: 12e9195a4b77 ("fsl/fman: Add FMan support")
Signed-off-by: Nicolas Saenz Julienne <nsaenzjulienne@suse.de>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/freescale/fman/fman.c