summaryrefslogtreecommitdiffstats
path: root/driver/base.c
diff options
context:
space:
mode:
authorSuren A. Chilingaryan <csa@suren.me>2024-06-18 23:59:02 +0200
committerSuren A. Chilingaryan <csa@suren.me>2024-06-18 23:59:02 +0200
commitedd98859027a0f970cbccedb4180a7893556350e (patch)
treeee76cf38ae7257aaa25cc49d34d4559b846be52d /driver/base.c
parent41e2dee6a212073beef2ef7d5d9fca8ed1845005 (diff)
downloadpcitool-edd98859027a0f970cbccedb4180a7893556350e.tar.gz
pcitool-edd98859027a0f970cbccedb4180a7893556350e.tar.bz2
pcitool-edd98859027a0f970cbccedb4180a7893556350e.tar.xz
pcitool-edd98859027a0f970cbccedb4180a7893556350e.zip
Support for kernels 6.x: compilation tested on Ubuntu 23.10 & 24.04 & operation on Debian 12.5. This still might contain incompatibilities for some earlier kernel versions as I was relaying on ChatGPT to find which exact kernel version was introducing particular changesHEADmaster
Diffstat (limited to 'driver/base.c')
-rw-r--r--driver/base.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/driver/base.c b/driver/base.c
index 3cd42b8..d600a96 100644
--- a/driver/base.c
+++ b/driver/base.c
@@ -290,7 +290,7 @@ static int __init pcidriver_init(void)
mod_info("Major %d allocated to nodename '%s'\n", MAJOR(pcidriver_devt), NODENAME);
/* Register driver class */
- pcidriver_class = class_create(THIS_MODULE, NODENAME);
+ pcidriver_class = class_create_compat(THIS_MODULE, NODENAME);
if (IS_ERR(pcidriver_class)) {
mod_info("No sysfs support. Module not loaded.\n");