[openwrt/openwrt] mac80211: rt2x00: use remove_new
LEDE Commits
lede-commits at lists.infradead.org
Tue May 6 15:37:16 PDT 2025
hauke pushed a commit to openwrt/openwrt.git, branch main:
https://git.openwrt.org/6b0f414aff8ef8bd453c3b907781979c64c3e580
commit 6b0f414aff8ef8bd453c3b907781979c64c3e580
Author: Mieczyslaw Nalewaj <namiltd at yahoo.com>
AuthorDate: Tue May 6 00:40:56 2025 +0200
mac80211: rt2x00: use remove_new
Easy compability fix for kernel 6.12.
Signed-off-by: Mieczyslaw Nalewaj <namiltd at yahoo.com>
Link: https://github.com/openwrt/openwrt/pull/18719
Signed-off-by: Hauke Mehrtens <hauke at hauke-m.de>
---
.../997-rt2x00-change-remove-to-remove_new.patch | 42 ++++++++++++++++++++++
1 file changed, 42 insertions(+)
diff --git a/package/kernel/mac80211/patches/rt2x00/997-rt2x00-change-remove-to-remove_new.patch b/package/kernel/mac80211/patches/rt2x00/997-rt2x00-change-remove-to-remove_new.patch
new file mode 100644
index 0000000000..f1a7267b1a
--- /dev/null
+++ b/package/kernel/mac80211/patches/rt2x00/997-rt2x00-change-remove-to-remove_new.patch
@@ -0,0 +1,42 @@
+--- a/drivers/net/wireless/ralink/rt2x00/rt2800soc.c
++++ b/drivers/net/wireless/ralink/rt2x00/rt2800soc.c
+@@ -273,7 +273,7 @@ static struct platform_driver rt2800soc_
+ .of_match_table = rt2880_wmac_match,
+ },
+ .probe = rt2800soc_probe,
+- .remove = rt2x00soc_remove,
++ .remove_new = rt2x00soc_remove,
+ .suspend = rt2x00soc_suspend,
+ .resume = rt2x00soc_resume,
+ };
+--- a/drivers/net/wireless/ralink/rt2x00/rt2x00soc.c
++++ b/drivers/net/wireless/ralink/rt2x00/rt2x00soc.c
+@@ -124,7 +124,7 @@ exit_free_device:
+ }
+ EXPORT_SYMBOL_GPL(rt2x00soc_probe);
+
+-int rt2x00soc_remove(struct platform_device *pdev)
++void rt2x00soc_remove(struct platform_device *pdev)
+ {
+ struct ieee80211_hw *hw = platform_get_drvdata(pdev);
+ struct rt2x00_dev *rt2x00dev = hw->priv;
+@@ -135,8 +135,6 @@ int rt2x00soc_remove(struct platform_dev
+ rt2x00lib_remove_dev(rt2x00dev);
+ rt2x00soc_free_reg(rt2x00dev);
+ ieee80211_free_hw(hw);
+-
+- return 0;
+ }
+ EXPORT_SYMBOL_GPL(rt2x00soc_remove);
+
+--- a/drivers/net/wireless/ralink/rt2x00/rt2x00soc.h
++++ b/drivers/net/wireless/ralink/rt2x00/rt2x00soc.h
+@@ -17,7 +17,7 @@
+ * SoC driver handlers.
+ */
+ int rt2x00soc_probe(struct platform_device *pdev, const struct rt2x00_ops *ops);
+-int rt2x00soc_remove(struct platform_device *pdev);
++void rt2x00soc_remove(struct platform_device *pdev);
+ #ifdef CONFIG_PM
+ int rt2x00soc_suspend(struct platform_device *pdev, pm_message_t state);
+ int rt2x00soc_resume(struct platform_device *pdev);
More information about the lede-commits
mailing list