summaryrefslogtreecommitdiff
path: root/virt/kvm
diff options
context:
space:
mode:
authorEsben Haabendal <esben@geanix.com>2019-04-30 09:17:48 +0200
committerDavid S. Miller <davem@davemloft.net>2019-05-01 14:33:30 -0400
commita63625d2a0e794f9a348a7119e50b0a56cbd6a18 (patch)
tree291d69d25d2f87093c62a1d586a4467db21ab9ae /virt/kvm
parentac97a359b72d340e1c04083451b1c6d2f41eb317 (diff)
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>
Diffstat (limited to 'virt/kvm')
0 files changed, 0 insertions, 0 deletions