Searched hist:"4613 b279bee7954f1378c6339618641fdc4a675f" (Results 1 – 2 of 2) sorted by relevance
/openbmc/linux/drivers/net/ethernet/stmicro/stmmac/ |
H A D | stmmac_platform.c | diff 4613b279bee7954f1378c6339618641fdc4a675f Mon Aug 01 02:02:42 CDT 2016 Peter Chen <peter.chen@nxp.com> ethernet: stmicro: stmmac: 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.
This commit fixes both local (in stmmac_axi_setup) and global (plat->phy_node) device_node for this issue, and using the correct device node when tries to put node at stmmac_probe_config_dt for error path.
Signed-off-by: Peter Chen <peter.chen@nxp.com> Signed-off-by: David S. Miller <davem@davemloft.net>
|
H A D | stmmac_main.c | diff 4613b279bee7954f1378c6339618641fdc4a675f Mon Aug 01 02:02:42 CDT 2016 Peter Chen <peter.chen@nxp.com> ethernet: stmicro: stmmac: 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.
This commit fixes both local (in stmmac_axi_setup) and global (plat->phy_node) device_node for this issue, and using the correct device node when tries to put node at stmmac_probe_config_dt for error path.
Signed-off-by: Peter Chen <peter.chen@nxp.com> Signed-off-by: David S. Miller <davem@davemloft.net>
|