linux/drivers/net/ethernet/xilinx
Esben Haabendal a63625d2a0 net: ll_temac: Fix and simplify error handling by using devres functions
As a side effect, a few error cases are fixed.

If of_iomap() of sdma_regs failed, no error code was returned.  Fixed to
return -ENOMEM similar to of_iomap() fail of regs.

If sysfs_create_group() or register_netdev() failed, lp->phy_node was not
released.

Finally, the order in remove function is corrected to be reverse order
of what is done in probe, i.e. calling temac_mdio_teardown() last, so we
unregister the netdev that most likely is using the mdio_bus first.

Signed-off-by: Esben Haabendal <esben@geanix.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
2019-05-01 14:33:30 -04:00
..
Kconfig net: ethernet: xilinx: Mark XILINX_LL_TEMAC broken on 64-bit 2017-11-29 09:43:24 -05:00
ll_temac_main.c net: ll_temac: Fix and simplify error handling by using devres functions 2019-05-01 14:33:30 -04:00
ll_temac_mdio.c net: ll_temac: Fix and simplify error handling by using devres functions 2019-05-01 14:33:30 -04:00
ll_temac.h net: ll_temac: Fix and simplify error handling by using devres functions 2019-05-01 14:33:30 -04:00
Makefile License cleanup: add SPDX GPL-2.0 license identifier to files with no license 2017-11-02 11:10:55 +01:00
xilinx_axienet_main.c net: xilinx: fix possible object reference leak 2019-03-23 21:21:24 -04:00
xilinx_axienet_mdio.c net: axienet: Fix double deregister of mdio 2018-07-24 16:38:01 -07:00
xilinx_axienet.h License cleanup: add SPDX GPL-2.0 license identifier to files with no license 2017-11-02 11:10:55 +01:00
xilinx_emaclite.c net: xilinx: emaclite: add minimal ndo_do_ioctl hook 2019-04-08 10:00:10 -07:00