diff options
author | Peter Chen <peter.chen@nxp.com> | 2016-08-01 07:02:37 (GMT) |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2016-08-02 04:43:48 (GMT) |
commit | ccb80393c484b071ec74b2f4ce9ef8d975fa4aa5 (patch) | |
tree | 0e3added6fa971552ca646163de3a39d8e71219b /drivers | |
parent | d4e4da00b68079dc13b15565a52d81f88bb61b2a (diff) | |
download | linux-ccb80393c484b071ec74b2f4ce9ef8d975fa4aa5.tar.xz |
ethernet: marvell: mvpp2: 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')
-rw-r--r-- | drivers/net/ethernet/marvell/mvpp2.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/net/ethernet/marvell/mvpp2.c b/drivers/net/ethernet/marvell/mvpp2.c index 0b04717..60227a3 100644 --- a/drivers/net/ethernet/marvell/mvpp2.c +++ b/drivers/net/ethernet/marvell/mvpp2.c @@ -6234,6 +6234,7 @@ err_free_stats: err_free_irq: irq_dispose_mapping(port->irq); err_free_netdev: + of_node_put(phy_node); free_netdev(dev); return err; } @@ -6244,6 +6245,7 @@ static void mvpp2_port_remove(struct mvpp2_port *port) int i; unregister_netdev(port->dev); + of_node_put(port->phy_node); free_percpu(port->pcpu); free_percpu(port->stats); for (i = 0; i < txq_number; i++) |