wifi: rt2x00: soc: modernize probe
authorRosen Penev <rosenp@gmail.com>
Tue, 22 Jul 2025 21:28:54 +0000 (14:28 -0700)
committerJohannes Berg <johannes.berg@intel.com>
Wed, 23 Jul 2025 10:29:08 +0000 (12:29 +0200)
commitddc19499aee1327ad9fa773a3db62f2d67798836
tree27da81109c7968c23a0488632cd7da5f8d3aa042
parent7f6109086c9e7bbc78ff936dac45626870455c76
wifi: rt2x00: soc: modernize probe

Remove a bunch of static memory management functions and simplify with
devm.

Also move allocation before ieee80211_alloc_hw to get rid of goto
statements and clarify the error handling a bit more.

Signed-off-by: Rosen Penev <rosenp@gmail.com>
Acked-by: Stanislaw Gruszka <stf_xl@wp.pl>
Reviewed-by: Sergio Paracuellos <sergio.paracuellos@gmail.com>
Link: https://patch.msgid.link/20250722212856.11343-6-rosenp@gmail.com
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
drivers/net/wireless/ralink/rt2x00/rt2800soc.c