fix build for 6.x kernels

This commit is contained in:
anna 2023-07-26 17:12:25 +02:00
parent 806d91be53
commit 917884bf9f
Signed by: fef
GPG key ID: 2585C2DC6D79B485

View file

@ -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);