]> www.infradead.org Git - users/jedix/linux-maple.git/commit
net: emaclite: Replace alloc_etherdev() with devm_alloc_etherdev()
authorAbin Joseph <abin.joseph@amd.com>
Wed, 9 Oct 2024 16:28:22 +0000 (21:58 +0530)
committerJakub Kicinski <kuba@kernel.org>
Fri, 11 Oct 2024 22:41:34 +0000 (15:41 -0700)
commit130fbea551c5c87e19eb1f0895c027dd342a5ae0
tree2943a238a31eb8dce7ccf0c3c3c298289ed9e1c8
parent60dbdc6e08d6fe66380598ef8bb857a4474e30d9
net: emaclite: Replace alloc_etherdev() with devm_alloc_etherdev()

Use device managed ethernet device allocation to simplify the error
handling logic. No functional change.

Signed-off-by: Abin Joseph <abin.joseph@amd.com>
Signed-off-by: Radhey Shyam Pandey <radhey.shyam.pandey@amd.com>
Reviewed-by: Simon Horman <horms@kernel.org>
Link: https://patch.msgid.link/1728491303-1456171-3-git-send-email-radhey.shyam.pandey@amd.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
drivers/net/ethernet/xilinx/xilinx_emaclite.c