diff options
author | YueHaibing <yuehaibing@huawei.com> | 2018-06-11 21:03:45 +0800 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2018-06-14 17:01:05 -0700 |
commit | bdf767cae3dddcb50a9ca09d01bb79df3e384f7b (patch) | |
tree | 87bba32cb96acaedf3042a1c7940f0d1d7653c0b /drivers/net/ethernet/qualcomm/emac/emac-sgmii.c | |
parent | 995191220056300c51ed870a5d5321f91f3eef89 (diff) | |
download | linux-bdf767cae3dddcb50a9ca09d01bb79df3e384f7b.tar.gz linux-bdf767cae3dddcb50a9ca09d01bb79df3e384f7b.tar.bz2 linux-bdf767cae3dddcb50a9ca09d01bb79df3e384f7b.zip |
net: qcom/emac: Add missing of_node_put()
Add missing of_node_put() call for device node returned by
of_parse_phandle().
Signed-off-by: YueHaibing <yuehaibing@huawei.com>
Acked-by: Timur Tabi <timur@codeaurora.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/ethernet/qualcomm/emac/emac-sgmii.c')
-rw-r--r-- | drivers/net/ethernet/qualcomm/emac/emac-sgmii.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/net/ethernet/qualcomm/emac/emac-sgmii.c b/drivers/net/ethernet/qualcomm/emac/emac-sgmii.c index e78e5db39458..c694e3428dfc 100644 --- a/drivers/net/ethernet/qualcomm/emac/emac-sgmii.c +++ b/drivers/net/ethernet/qualcomm/emac/emac-sgmii.c @@ -384,6 +384,7 @@ int emac_sgmii_config(struct platform_device *pdev, struct emac_adapter *adpt) } sgmii_pdev = of_find_device_by_node(np); + of_node_put(np); if (!sgmii_pdev) { dev_err(&pdev->dev, "invalid internal-phy property\n"); return -ENODEV; |