Commit 7882987
authored
Ensure v6.4 compatibility (#1)
In the previous implementation in the function simrupt_init(), we
utilize a function call "class_create()" to create a class structure for
the kernel module. This function is explicitly called with
"class_create(THIS_MODULE, DEV_NAME)", which will cause a compiling
error. The reason is the Linux Kernel removes the module pointer from
the function "class_create()" in v6.4.0 and later versions. We should
support the capability for versions above v6.4.0 as the corresponding
changes have made.1 parent 817aa25 commit 7882987
1 file changed
+5
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
7 | 7 | | |
8 | 8 | | |
9 | 9 | | |
| 10 | + | |
10 | 11 | | |
11 | 12 | | |
12 | 13 | | |
| |||
338 | 339 | | |
339 | 340 | | |
340 | 341 | | |
| 342 | + | |
341 | 343 | | |
| 344 | + | |
| 345 | + | |
| 346 | + | |
342 | 347 | | |
343 | 348 | | |
344 | 349 | | |
| |||
0 commit comments