mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-08-27 03:10:12 +00:00
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>
This commit is contained in:
parent
ccb80393c4
commit
bd1026c69f
1 changed files with 1 additions and 0 deletions
|
@ -1506,6 +1506,7 @@ static int pxa168_eth_probe(struct platform_device *pdev)
|
||||||
}
|
}
|
||||||
of_property_read_u32(np, "reg", &pep->phy_addr);
|
of_property_read_u32(np, "reg", &pep->phy_addr);
|
||||||
pep->phy_intf = of_get_phy_mode(pdev->dev.of_node);
|
pep->phy_intf = of_get_phy_mode(pdev->dev.of_node);
|
||||||
|
of_node_put(np);
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Hardware supports only 3 ports */
|
/* Hardware supports only 3 ports */
|
||||||
|
|
Loading…
Reference in a new issue