Skip to content

Commit

Permalink
Fix errors in PR 8361 (#8363)
Browse files Browse the repository at this point in the history
Co-authored-by: rave <karthik>
  • Loading branch information
karthdmg-xilinx authored Aug 23, 2024
1 parent f628037 commit 22cef19
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/runtime_src/core/pcie/driver/aws/kernel/mgmt/mgmt-core.c
Original file line number Diff line number Diff line change
Expand Up @@ -853,10 +853,10 @@ static int __init awsmgmt_init(void)

printk(KERN_INFO DRV_NAME " init()\n");
#if LINUX_VERSION_CODE < KERNEL_VERSION(6, 4, 0)
xrt_class = class_create(THIS_MODULE, DRV_NAME);
awsmgmt_class = class_create(THIS_MODULE, DRV_NAME);
#else
awsmgmt_class = class_create(DRV_NAME);
#endif
#endif
if (IS_ERR(awsmgmt_class))
return PTR_ERR(awsmgmt_class);
res = alloc_chrdev_region(&awsmgmt_devnode, AWSMGMT_MINOR_BASE,
Expand Down

0 comments on commit 22cef19

Please sign in to comment.