driver: Fix mods_bpmpipc build issue with kernel v6.2+

- Fix build issue with mods_bpmpipc

Bug 3974855

Change-Id: I77c7f49b56f0eceea8e500dc8217e9ae76585f63
Signed-off-by: koenz <koenz@nvidia.com>
Reviewed-on: https://git-master.nvidia.com/r/c/linux-nvidia/+/2865209
Tested-by: Rohit Khanna <rokhanna@nvidia.com>
Reviewed-by: Rohit Khanna <rokhanna@nvidia.com>
Reviewed-by: Sachin Nikam <snikam@nvidia.com>
GVS: Gerrit_Virtual_Submit <buildbot_gerritrpt@nvidia.com>
This commit is contained in:
koenz
2023-03-01 10:35:18 +08:00
committed by Laxman Dewangan
parent b2f9fe02de
commit 6f11b7dffb
3 changed files with 43 additions and 9 deletions

View File

@@ -1040,9 +1040,7 @@ static int mods_krnl_close(struct inode *ip, struct file *fp)
#endif
#if defined(CONFIG_TEGRA_IVC)
#if (KERNEL_VERSION(6, 2, 0) > LINUX_VERSION_CODE)
mods_bpmpipc_cleanup();
#endif
#endif
mods_disable_all_devices(client);
@@ -2744,13 +2742,11 @@ static long mods_krnl_ioctl(struct file *fp,
break;
#ifdef CONFIG_TEGRA_IVC
#if (KERNEL_VERSION(6, 2, 0) > LINUX_VERSION_CODE)
case MODS_ESC_BPMP_UPHY_LANE_EOM_SCAN:
MODS_IOCTL(MODS_ESC_BPMP_UPHY_LANE_EOM_SCAN,
esc_mods_bpmp_uphy_lane_eom_scan,
MODS_BPMP_UPHY_LANE_EOM_SCAN_PARAMS);
break;
#endif
#endif
default: