Staging: octeon: Add missing of_node_put after calling of_parse_phandle.
authorSandhya Bankar <bankarsandhya512@gmail.com>
Sun, 18 Sep 2016 17:32:33 +0000 (23:02 +0530)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 20 Sep 2016 11:51:24 +0000 (13:51 +0200)
commit24586a35d3edfed3217fec3597861d52eb6d5814
treee633e30a8b33fc8d3eda562374c6574a0d6258bc
parentcd9ae9e4db8a62cfbdaec2d73f8c34eea66c48d5
Staging: octeon: Add missing of_node_put after calling of_parse_phandle.

of_node_put needs to be called when the device node which is got
from of_parse_phandle is no longer used.
This patch is found by below coccinelle script:

@@
expression e,e1,e2;
@@
*e = of_parse_phandle(...)
... when != of_node_put(e)
    when != true e == NULL
    when != e2 = e
e = e1

Signed-off-by: Sandhya Bankar <bankarsandhya512@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/octeon/ethernet-mdio.c