mirror of
git://nv-tegra.nvidia.com/linux-nv-oot.git
synced 2025-12-22 17:25:35 +03:00
video: tegra: nvmap: Remove unused code
The function __nvmap_kmap() is only supported for Linux kernels prior to v5.4 and so we can remove the code in the function for kernel greater or equal to Linux v6.0. Bug 3767126 Change-Id: Ice2384ce28f268ce453236db36fc82d6781eb716 Signed-off-by: Jon Hunter <jonathanh@nvidia.com> Reviewed-on: https://git-master.nvidia.com/r/c/linux-nvidia/+/2809529 Tested-by: mobile promotions <svcmobile_promotions@nvidia.com> Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com>
This commit is contained in:
committed by
Laxman Dewangan
parent
9045984efb
commit
f1e2cd8dea
@@ -84,11 +84,8 @@ void *__nvmap_kmap(struct nvmap_handle *h, unsigned int pagenum)
|
||||
h->pgalloc.pages[pagenum]));
|
||||
else
|
||||
paddr = h->carveout->base + pagenum * PAGE_SIZE;
|
||||
#if LINUX_VERSION_CODE >= KERNEL_VERSION(6, 0, 0)
|
||||
addr = ioremap_prot(phys_addr, PAGE_SIZE, pgprot_val(prot));
|
||||
#else
|
||||
|
||||
addr = __ioremap(paddr, PAGE_SIZE, prot);
|
||||
#endif
|
||||
if (addr == NULL)
|
||||
goto out;
|
||||
kaddr = (unsigned long)addr;
|
||||
|
||||
Reference in New Issue
Block a user