summaryrefslogtreecommitdiffstats
path: root/driver/base.c
diff options
context:
space:
mode:
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");