mirror of
git://nv-tegra.nvidia.com/linux-nv-oot.git
synced 2025-12-22 09:11:26 +03:00
069925e74b1078ea0dbd5cb948264dd49e2ba904
The function ioremap_prot() has been exported by the Linux kernel since v5.9. However, it is only available if GENERIC_IOREMAP is enabled. Since Linux v6.0, when the ARM64 __ioremap() function was removed, was GENERIC_IOREMAP enabled for ARM64 by default. Rather than depend on kernel version for selecting if ioremap_prot is used, use ioremap_prot if GENERIC_IOREMAP is enabled. This is a better solution for working with 3rd party Linux kernels that may backport upstream changes to the kernel and hence are not compatible with these existing version checks. Bug 4119327 Change-Id: I2f5f9a691c66c5fbd83d4aa51062c749d39dd447 Signed-off-by: Jon Hunter <jonathanh@nvidia.com> Reviewed-on: https://git-master.nvidia.com/r/c/linux-nv-oot/+/2982126 Reviewed-by: Ketan Patil <ketanp@nvidia.com> GVS: Gerrit_Virtual_Submit <buildbot_gerritrpt@nvidia.com>
Description
No description provided