From 2561ee0aa95f66a7c849dd55b1addd0160180377 Mon Sep 17 00:00:00 2001 From: Rohit Khanna Date: Mon, 10 Jul 2023 09:48:01 -0700 Subject: [PATCH] drivers: Fix mods arm ffa error for kernel 6.1 Updated from ffa_ops to msg_ops for ffa api Change-Id: I59bec58f2546d2aee1474d6c63a40b8871cd1e52 Signed-off-by: Rohit Khanna Reviewed-on: https://git-master.nvidia.com/r/c/linux-nv-oot/+/2934214 Reviewed-by: svcacv Reviewed-by: Chris Dragan Tested-by: Koen Zhao GVS: Gerrit_Virtual_Submit --- drivers/misc/mods/mods_arm_ffa.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/misc/mods/mods_arm_ffa.c b/drivers/misc/mods/mods_arm_ffa.c index 8fddfa8e..6f83312c 100644 --- a/drivers/misc/mods/mods_arm_ffa.c +++ b/drivers/misc/mods/mods_arm_ffa.c @@ -19,7 +19,7 @@ static const struct ffa_device_id mods_ffa_device_id[] = { struct mods_ffa_ctx { struct ffa_device *ffa_dev; -#if KERNEL_VERSION(6, 2, 0) <= MODS_KERNEL_VERSION +#if KERNEL_VERSION(6, 1, 0) <= MODS_KERNEL_VERSION const struct ffa_msg_ops *ffa_ops; #else const struct ffa_dev_ops *ffa_ops; @@ -34,7 +34,7 @@ static int ffa_probe(struct ffa_device *ffa_dev) { int ret = 0; -#if KERNEL_VERSION(6, 2, 0) <= MODS_KERNEL_VERSION +#if KERNEL_VERSION(6, 1, 0) <= MODS_KERNEL_VERSION const struct ffa_msg_ops *ffa_ops = NULL; if (ffa_dev->ops)