]> git.baikalelectronics.ru Git - kernel.git/commit
sunhme: switch to devres
authorRolf Eike Beer <eike-kernel@sf-tec.de>
Sat, 24 Sep 2022 01:53:32 +0000 (21:53 -0400)
committerJakub Kicinski <kuba@kernel.org>
Tue, 27 Sep 2022 00:45:37 +0000 (17:45 -0700)
commit914d9b2711ddb86c3480cbdac74a55b453e491bc
tree6d7faf6d4507ba8cf43a7ae0be4e6d0c7f91aec6
parent5b3dc6dda6b1af8a6117d99394a6db81ec9be3d5
sunhme: switch to devres

This not only removes a lot of code, it also fixes the memleak of the DMA
memory when register_netdev() fails.

Signed-off-by: Rolf Eike Beer <eike-kernel@sf-tec.de>
[ rebased onto net-next/master; fixed error reporting ]
Signed-off-by: Sean Anderson <seanga2@gmail.com>
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
drivers/net/ethernet/sun/sunhme.c