From 917884bf9f2484c8a52cdba2cc0a997f723402b2 Mon Sep 17 00:00:00 2001 From: fef Date: Wed, 26 Jul 2023 17:12:25 +0200 Subject: [PATCH] fix build for 6.x kernels --- src/keymash.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/keymash.c b/src/keymash.c index 7427c96..f9bc937 100644 --- a/src/keymash.c +++ b/src/keymash.c @@ -98,7 +98,7 @@ static int keymash_init(void) goto err_cdev_add; } - keymash_class = class_create(THIS_MODULE, "kmsh"); + keymash_class = class_create("kmsh"); if (IS_ERR(keymash_class)) { err = PTR_ERR(keymash_class); keymash_err("class_create() returned %d\n", err);