net: amd: add missing of_node_put()
authorYangtao Li <tiny.windzz@gmail.com>
Thu, 22 Nov 2018 12:34:41 +0000 (07:34 -0500)
committerDavid S. Miller <davem@davemloft.net>
Sat, 24 Nov 2018 01:24:24 +0000 (17:24 -0800)
commitc44c749d3b6fdfca39002e7e48e03fe9f9fe37a3
tree8b1eeb5a4a237d74747834d76df2ad80ceb74a89
parent5ed9dc99107144f83b6c1bb52a69b58875baf540
net: amd: add missing of_node_put()

of_find_node_by_path() acquires a reference to the node
returned by it and that reference needs to be dropped by its caller.
This place doesn't do that, so fix it.

Signed-off-by: Yangtao Li <tiny.windzz@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/amd/sunlance.c