Commit 7401c3f7 authored by A. Hahn's avatar A. Hahn

wishbone: add kernel >= 6.4.0 support

parent 3ccd8975
......@@ -807,7 +807,11 @@ static int __init wishbone_init(void)
goto fail_last;
}
#if LINUX_VERSION_CODE < KERNEL_VERSION(6,4,0)
wishbone_master_class = class_create(THIS_MODULE, "wbm");
#else
wishbone_master_class = class_create("wbm");
#endif
if (IS_ERR(wishbone_master_class)) {
err = PTR_ERR(wishbone_master_class);
goto fail_last;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment