From 22cef192ec6d9ca696cfd1a83915e38c91002972 Mon Sep 17 00:00:00 2001 From: DMG Karthik <146181807+karthdmg-xilinx@users.noreply.github.com> Date: Fri, 23 Aug 2024 14:31:31 +0530 Subject: [PATCH] Fix errors in PR 8361 (#8363) Co-authored-by: rave --- src/runtime_src/core/pcie/driver/aws/kernel/mgmt/mgmt-core.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/runtime_src/core/pcie/driver/aws/kernel/mgmt/mgmt-core.c b/src/runtime_src/core/pcie/driver/aws/kernel/mgmt/mgmt-core.c index a7ecc47644b..6aa9a8b9d86 100644 --- a/src/runtime_src/core/pcie/driver/aws/kernel/mgmt/mgmt-core.c +++ b/src/runtime_src/core/pcie/driver/aws/kernel/mgmt/mgmt-core.c @@ -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,