|
@@ -18823,14 +18823,14 @@ const struct file_operations wlan_hdd_state_fops = {
|
|
|
};
|
|
|
|
|
|
#if (LINUX_VERSION_CODE < KERNEL_VERSION(6, 2, 0))
|
|
|
-static void wlan_hdd_class_create(struct class *class_input, const char *name)
|
|
|
+static struct class *wlan_hdd_class_create(const char *name)
|
|
|
{
|
|
|
- class_input = class_create(THIS_MODULE, name);
|
|
|
+ return class_create(THIS_MODULE, name);
|
|
|
}
|
|
|
#else
|
|
|
-static void wlan_hdd_class_create(struct class *class_input, const char *name)
|
|
|
+static struct class *wlan_hdd_class_create(const char *name)
|
|
|
{
|
|
|
- class_input = class_create(name);
|
|
|
+ return class_create(name);
|
|
|
}
|
|
|
#endif
|
|
|
|
|
@@ -18851,7 +18851,7 @@ static int wlan_hdd_state_ctrl_param_create(void)
|
|
|
goto dev_alloc_err;
|
|
|
}
|
|
|
wlan_hdd_state_major = MAJOR(device);
|
|
|
- wlan_hdd_class_create(class, WLAN_CTRL_NAME);
|
|
|
+ class = wlan_hdd_class_create(WLAN_CTRL_NAME);
|
|
|
if (IS_ERR(class)) {
|
|
|
pr_err("wlan_hdd_state class_create error");
|
|
|
goto class_err;
|