mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-08-26 02:39:48 +00:00
ethernet: altera: add missing of_node_put
of_node_put needs to be called when the device node which is got from of_parse_phandle (or of_node_get) 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
0a2f0d2de4
commit
5d97222ae0
1 changed files with 1 additions and 0 deletions
|
@ -815,6 +815,7 @@ static int init_phy(struct net_device *dev)
|
||||||
phydev = of_phy_connect(dev, phynode,
|
phydev = of_phy_connect(dev, phynode,
|
||||||
&altera_tse_adjust_link, 0, priv->phy_iface);
|
&altera_tse_adjust_link, 0, priv->phy_iface);
|
||||||
}
|
}
|
||||||
|
of_node_put(phynode);
|
||||||
|
|
||||||
if (!phydev) {
|
if (!phydev) {
|
||||||
netdev_err(dev, "Could not find the PHY\n");
|
netdev_err(dev, "Could not find the PHY\n");
|
||||||
|
|
Loading…
Reference in a new issue