mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-08-26 10:49:33 +00:00
ethernet: aurora: nb8800: 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
a94efbd7cc
commit
8d00201a2e
1 changed files with 2 additions and 0 deletions
|
@ -1504,6 +1504,7 @@ static int nb8800_probe(struct platform_device *pdev)
|
||||||
err_free_dma:
|
err_free_dma:
|
||||||
nb8800_dma_free(dev);
|
nb8800_dma_free(dev);
|
||||||
err_free_bus:
|
err_free_bus:
|
||||||
|
of_node_put(priv->phy_node);
|
||||||
mdiobus_unregister(bus);
|
mdiobus_unregister(bus);
|
||||||
err_disable_clk:
|
err_disable_clk:
|
||||||
clk_disable_unprepare(priv->clk);
|
clk_disable_unprepare(priv->clk);
|
||||||
|
@ -1519,6 +1520,7 @@ static int nb8800_remove(struct platform_device *pdev)
|
||||||
struct nb8800_priv *priv = netdev_priv(ndev);
|
struct nb8800_priv *priv = netdev_priv(ndev);
|
||||||
|
|
||||||
unregister_netdev(ndev);
|
unregister_netdev(ndev);
|
||||||
|
of_node_put(priv->phy_node);
|
||||||
|
|
||||||
mdiobus_unregister(priv->mii_bus);
|
mdiobus_unregister(priv->mii_bus);
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue