aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/ethernet/renesas/ravb_main.c
diff options
context:
space:
mode:
authorDavid S. Miller <davem@davemloft.net>2016-08-01 21:43:58 -0700
committerDavid S. Miller <davem@davemloft.net>2016-08-01 21:43:58 -0700
commitbbcecd60209db54e4231e3a69bc425bc8b86096f (patch)
tree6a8e5d5bbeb31ab6466a14268ba3a5a928b8488c /drivers/net/ethernet/renesas/ravb_main.c
parent0a2f0d2de4ed9bd73e2c8d604863399ed6a20527 (diff)
parent5817f977527e5cdbea9ca56d2b95824f59c8747d (diff)
downloadlinux-bbcecd60209db54e4231e3a69bc425bc8b86096f.tar.gz
Merge branch 'net-of_node_put'
Peter Chen says: ==================== add missing of_node_put after calling of_parse_phandle This patch set fixes missing of_node_put issue at ethernet driver. of_node_put needs to be called when the device node which is got from of_parse_phandle has finished using. The compilation test has passed by using allmodconfig for drivers/net/ethernet. Changes for v2: - If the device node is local variable, it can be put in the same function. - If the device node will be used the whole driver life cycle, it should be put (call of_node_put) at driver's remove. Patch [4, 5, 9, 14, 15/15] - Fix the issue that the node still be used at error patch [6/15] - Add acked for patch [11,12/15] ==================== Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/ethernet/renesas/ravb_main.c')
-rw-r--r--drivers/net/ethernet/renesas/ravb_main.c1
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;