[PATCH 72/74] patches: add patch for class_create() in hwsim

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



From: Johannes Berg <johannes.berg@xxxxxxxxx>

Signed-off-by: Johannes Berg <johannes.berg@xxxxxxxxx>
---
 patches/0086-hwsim-class-create.patch | 14 ++++++++++++++
 1 file changed, 14 insertions(+)
 create mode 100644 patches/0086-hwsim-class-create.patch

diff --git a/patches/0086-hwsim-class-create.patch b/patches/0086-hwsim-class-create.patch
new file mode 100644
index 000000000000..786a5966be0d
--- /dev/null
+++ b/patches/0086-hwsim-class-create.patch
@@ -0,0 +1,14 @@
+--- a/drivers/net/wireless/virtual/mac80211_hwsim.c
++++ b/drivers/net/wireless/virtual/mac80211_hwsim.c
+@@ -6564,7 +6566,11 @@ static int __init init_mac80211_hwsim(void)
+ 	if (err)
+ 		goto out_exit_netlink;
+ 
++#if LINUX_VERSION_IS_GEQ(6,4,0)
+ 	hwsim_class = class_create("mac80211_hwsim");
++#else
++	hwsim_class = class_create(THIS_MODULE, "mac80211_hwsim");
++#endif
+ 	if (IS_ERR(hwsim_class)) {
+ 		err = PTR_ERR(hwsim_class);
+ 		goto out_exit_virtio;
-- 
2.45.1





[Index of Archives]     [Linux ARM Kernel]     [Linux ARM]     [Linux Omap]     [Fedora ARM]     [IETF Annouce]     [Security]     [Bugtraq]     [Linux]     [Linux OMAP]     [Linux MIPS]     [ECOS]     [Asterisk Internet PBX]     [Linux API]

  Powered by Linux