media: atomisp: removed unused hmm_bo_get_page_info() function
authorHans de Goede <hdegoede@redhat.com>
Wed, 15 Jun 2022 20:50:13 +0000 (21:50 +0100)
committerMauro Carvalho Chehab <mchehab@kernel.org>
Fri, 8 Jul 2022 15:22:41 +0000 (16:22 +0100)
hmm_bo_get_page_info() is not used anywhere, remove it.

Link: https://lore.kernel.org/linux-media/20220615205037.16549-17-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>
drivers/staging/media/atomisp/include/hmm/hmm_bo.h
drivers/staging/media/atomisp/pci/hmm/hmm_bo.c

index 1e9ccfd64c00a98405ee49c0af4de3c611c78aec..eba1ddcb7e64a4615915a9bb3fcd8bd80eea1f32 100644 (file)
@@ -232,12 +232,6 @@ int hmm_bo_alloc_pages(struct hmm_buffer_object *bo,
 void hmm_bo_free_pages(struct hmm_buffer_object *bo);
 int hmm_bo_page_allocated(struct hmm_buffer_object *bo);
 
-/*
- * get physical page info of the bo.
- */
-int hmm_bo_get_page_info(struct hmm_buffer_object *bo,
-                        struct hmm_page_object **page_obj, int *pgnr);
-
 /*
  * bind/unbind the physical pages to a virtual address space.
  */
index 1f0e62182fa365522a88a324af5d61e18220433b..72124a38c756b98b339321370ac80685f3a692fc 100644 (file)
@@ -975,32 +975,6 @@ int hmm_bo_page_allocated(struct hmm_buffer_object *bo)
        return bo->status & HMM_BO_PAGE_ALLOCED;
 }
 
-/*
- * get physical page info of the bo.
- */
-int hmm_bo_get_page_info(struct hmm_buffer_object *bo,
-                        struct hmm_page_object **page_obj, int *pgnr)
-{
-       check_bo_null_return(bo, -EINVAL);
-
-       mutex_lock(&bo->mutex);
-
-       check_bo_status_yes_goto(bo, HMM_BO_PAGE_ALLOCED, status_err);
-
-       *page_obj = bo->page_obj;
-       *pgnr = bo->pgnr;
-
-       mutex_unlock(&bo->mutex);
-
-       return 0;
-
-status_err:
-       dev_err(atomisp_dev,
-               "buffer object not page allocated yet.\n");
-       mutex_unlock(&bo->mutex);
-       return -EINVAL;
-}
-
 /*
  * bind the physical pages to a virtual address space.
  */