linux/drivers/net/ethernet/mscc
Wen Yang d2c50b1cd9 net: mscc: ocelot: add missing of_node_put after calling of_get_child_by_name
of_node_put needs to be called when the device node which is got
from of_get_child_by_name finished using.
In both cases of success and failure, we need to release 'ports',
so clean up the code using goto.

fixes: a556c76adc ("net: mscc: Add initial Ocelot switch support")
Signed-off-by: Wen Yang <wenyang@linux.alibaba.com>
Cc: Alexandre Belloni <alexandre.belloni@bootlin.com>
Cc: Microchip Linux Driver Support <UNGLinuxDriver@microchip.com>
Cc: "David S. Miller" <davem@davemloft.net>
Cc: netdev@vger.kernel.org
Cc: linux-kernel@vger.kernel.org
Signed-off-by: David S. Miller <davem@davemloft.net>
2019-10-01 10:01:58 -07:00
..
Kconfig
Makefile
ocelot.c net: mscc: PTP Hardware Clock (PHC) support 2019-08-15 16:31:12 -07:00
ocelot.h net: mscc: PTP Hardware Clock (PHC) support 2019-08-15 16:31:12 -07:00
ocelot_ace.c ocelot_ace: fix action of trap 2019-08-22 15:44:24 -07:00
ocelot_ace.h
ocelot_ana.h
ocelot_board.c net: mscc: ocelot: add missing of_node_put after calling of_get_child_by_name 2019-10-01 10:01:58 -07:00
ocelot_dev.h
ocelot_flower.c net: sched: use major priority number as hardware priority 2019-08-18 14:13:23 -07:00
ocelot_io.c
ocelot_police.c
ocelot_police.h
ocelot_ptp.h net: mscc: describe the PTP register range 2019-08-15 16:31:11 -07:00
ocelot_qs.h
ocelot_qsys.h
ocelot_regs.c net: mscc: describe the PTP register range 2019-08-15 16:31:11 -07:00
ocelot_rew.h
ocelot_s2.h
ocelot_sys.h
ocelot_tc.c
ocelot_tc.h
ocelot_vcap.h