diff options
author | Peter Chen <peter.chen@nxp.com> | 2016-08-01 15:02:32 +0800 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2016-08-01 21:43:47 -0700 |
commit | 8d00201a2e73cf49b5322a5c3b92c44dac586a7b (patch) | |
tree | f708aecfe9993c319a19a328c941fa3b9d42a206 /drivers/net | |
parent | a94efbd7cc45e7a1f7a346b233c00878e8c19deb (diff) | |
download | linux-8d00201a2e73cf49b5322a5c3b92c44dac586a7b.tar.bz2 |
ethernet: aurora: nb8800: 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/aurora/nb8800.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/net/ethernet/aurora/nb8800.c b/drivers/net/ethernet/aurora/nb8800.c index 0d4ea92a0d37..b047fd607b83 100644 --- a/drivers/net/ethernet/aurora/nb8800.c +++ b/drivers/net/ethernet/aurora/nb8800.c @@ -1504,6 +1504,7 @@ static int nb8800_probe(struct platform_device *pdev) err_free_dma: nb8800_dma_free(dev); err_free_bus: + of_node_put(priv->phy_node); mdiobus_unregister(bus); err_disable_clk: clk_disable_unprepare(priv->clk); @@ -1519,6 +1520,7 @@ static int nb8800_remove(struct platform_device *pdev) struct nb8800_priv *priv = netdev_priv(ndev); unregister_netdev(ndev); + of_node_put(priv->phy_node); mdiobus_unregister(priv->mii_bus); |