diff options
author | Peter Chen <peter.chen@nxp.com> | 2016-08-01 09:02:38 +0200 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2016-08-02 06:43:48 +0200 |
commit | bd1026c69f120d05f5091827a0b8b4bb96b91884 (patch) | |
tree | f0bc3a0647e8d5a29dab861f7150d6debdfca7b9 /drivers/net | |
parent | ethernet: marvell: mvpp2: add missing of_node_put after calling of_parse_phandle (diff) | |
download | linux-bd1026c69f120d05f5091827a0b8b4bb96b91884.tar.xz linux-bd1026c69f120d05f5091827a0b8b4bb96b91884.zip |
ethernet: marvell: pxa168_eth: 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>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net')
-rw-r--r-- | drivers/net/ethernet/marvell/pxa168_eth.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/net/ethernet/marvell/pxa168_eth.c b/drivers/net/ethernet/marvell/pxa168_eth.c index aeeb2e79a91a..5d5000c8edf1 100644 --- a/drivers/net/ethernet/marvell/pxa168_eth.c +++ b/drivers/net/ethernet/marvell/pxa168_eth.c @@ -1506,6 +1506,7 @@ static int pxa168_eth_probe(struct platform_device *pdev) } of_property_read_u32(np, "reg", &pep->phy_addr); pep->phy_intf = of_get_phy_mode(pdev->dev.of_node); + of_node_put(np); } /* Hardware supports only 3 ports */ |