diff options
author | Peter Chen <peter.chen@nxp.com> | 2016-08-01 15:02:36 +0800 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2016-08-01 21:43:48 -0700 |
commit | d4e4da00b68079dc13b15565a52d81f88bb61b2a (patch) | |
tree | 562b685b5190fdc4a7e86bf0034b4bb977943a4f | |
parent | 453cafbce5bd256d06a5714e86c8d77deafb7097 (diff) | |
download | linux-d4e4da00b68079dc13b15565a52d81f88bb61b2a.tar.bz2 |
ethernet: marvell: mvneta: 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>
-rw-r--r-- | drivers/net/ethernet/marvell/mvneta.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/net/ethernet/marvell/mvneta.c b/drivers/net/ethernet/marvell/mvneta.c index f92018b13d28..d41c28d00b57 100644 --- a/drivers/net/ethernet/marvell/mvneta.c +++ b/drivers/net/ethernet/marvell/mvneta.c @@ -4118,6 +4118,7 @@ static int mvneta_probe(struct platform_device *pdev) pp->bm_priv = NULL; } } + of_node_put(bm_node); err = mvneta_init(&pdev->dev, pp); if (err < 0) |