diff options
author | Peter Chen <peter.chen@nxp.com> | 2016-08-01 09:02:39 +0200 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2016-08-02 06:43:49 +0200 |
commit | c9b1eb89197bb07b1b89c184d18494e6cda0d315 (patch) | |
tree | 56b13cf666e75100051349f5b945f4ef4ebf06c7 /drivers/net/ethernet/renesas | |
parent | ethernet: marvell: pxa168_eth: add missing of_node_put after calling of_parse... (diff) | |
download | linux-c9b1eb89197bb07b1b89c184d18494e6cda0d315.tar.xz linux-c9b1eb89197bb07b1b89c184d18494e6cda0d315.zip |
ethernet: renesas: ravb_main: 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 has finished using.
Signed-off-by: Peter Chen <peter.chen@nxp.com>
Acked-by: Sergei Shtylyov <sergei.shtylyov@cogentembedded.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/ethernet/renesas')
-rw-r--r-- | drivers/net/ethernet/renesas/ravb_main.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/net/ethernet/renesas/ravb_main.c b/drivers/net/ethernet/renesas/ravb_main.c index 8377d0220fa8..1e1cc0fad17f 100644 --- a/drivers/net/ethernet/renesas/ravb_main.c +++ b/drivers/net/ethernet/renesas/ravb_main.c @@ -1005,6 +1005,7 @@ static int ravb_phy_init(struct net_device *ndev) } phydev = of_phy_connect(ndev, pn, ravb_adjust_link, 0, priv->phy_interface); + of_node_put(pn); if (!phydev) { netdev_err(ndev, "failed to connect PHY\n"); return -ENOENT; |