]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
net: xilinx: axienet: Use devres for resource management in probe path
authorSean Anderson <sean.anderson@linux.dev>
Fri, 16 Jan 2026 19:27:24 +0000 (00:57 +0530)
committerJakub Kicinski <kuba@kernel.org>
Thu, 22 Jan 2026 02:57:07 +0000 (18:57 -0800)
commit808d077f5b538065c524b76b340007c51fad215c
treeb81476b5b422a77362d491e6f9db0f5085d964f7
parent820ce0c8e98a8999f4c233ffb1ca92c27894614e
net: xilinx: axienet: Use devres for resource management in probe path

Transition axienet_probe() to managed resource allocation using devm_*
APIs for network device and clock handling, while improving error paths
with dev_err_probe(). This eliminates the need for manual resource
cleanup during probe failures and streamlines the remove() function.

Signed-off-by: Sean Anderson <sean.anderson@linux.dev>
Co-developed-by: Suraj Gupta <suraj.gupta2@amd.com>
Signed-off-by: Suraj Gupta <suraj.gupta2@amd.com>
Link: https://patch.msgid.link/20260116192725.972966-3-suraj.gupta2@amd.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
drivers/net/ethernet/xilinx/xilinx_axienet_main.c