mirror of
https://github.com/hardkernel/linux.git
synced 2026-06-06 19:08:57 +09:00
media: atomisp: remove unused hmm address translation functions
hmm_isp_vaddr_to_host_vaddr() and hmm_host_vaddr_to_hrt_vaddr() are unused, remove them. Link: https://lore.kernel.org/linux-media/20220615205037.16549-28-hdegoede@redhat.com Reviewed-by: Andy Shevchenko <andy.shevchenko@gmail.com> Signed-off-by: Hans de Goede <hdegoede@redhat.com> Signed-off-by: Mauro Carvalho Chehab <mchehab@kernel.org>
This commit is contained in:
committed by
Mauro Carvalho Chehab
parent
9061231732
commit
a9796c7b47
@@ -66,17 +66,6 @@ void hmm_vunmap(ia_css_ptr virt);
|
||||
*/
|
||||
void hmm_flush_vmap(ia_css_ptr virt);
|
||||
|
||||
/*
|
||||
* Address translation from ISP shared memory address to kernel virtual address
|
||||
* if the memory is not vmmaped, then do it.
|
||||
*/
|
||||
void *hmm_isp_vaddr_to_host_vaddr(ia_css_ptr ptr, bool cached);
|
||||
|
||||
/*
|
||||
* Address translation from kernel virtual address to ISP shared memory address
|
||||
*/
|
||||
ia_css_ptr hmm_host_vaddr_to_hrt_vaddr(const void *ptr);
|
||||
|
||||
/*
|
||||
* map ISP memory starts with virt to specific vma.
|
||||
*
|
||||
|
||||
@@ -608,23 +608,3 @@ void hmm_vunmap(ia_css_ptr virt)
|
||||
|
||||
hmm_bo_vunmap(bo);
|
||||
}
|
||||
|
||||
void *hmm_isp_vaddr_to_host_vaddr(ia_css_ptr ptr, bool cached)
|
||||
{
|
||||
return hmm_vmap(ptr, cached);
|
||||
/* vmunmap will be done in hmm_bo_release() */
|
||||
}
|
||||
|
||||
ia_css_ptr hmm_host_vaddr_to_hrt_vaddr(const void *ptr)
|
||||
{
|
||||
struct hmm_buffer_object *bo;
|
||||
|
||||
bo = hmm_bo_device_search_vmap_start(&bo_device, ptr);
|
||||
if (bo)
|
||||
return bo->start;
|
||||
|
||||
dev_err(atomisp_dev,
|
||||
"can not find buffer object whose kernel virtual address is %p\n",
|
||||
ptr);
|
||||
return 0;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user