drm/omap: remove now unused functions
authorChristian König <christian.koenig@amd.com>
Fri, 22 Jun 2018 09:23:26 +0000 (11:23 +0200)
committerChristian König <easy2remember.chk@googlemail.com>
Fri, 22 Jun 2018 15:14:32 +0000 (17:14 +0200)
Some functions are unused after removal of the kmap_atomic
DMA-buf interface.

Signed-off-by: Christian König <christian.koenig@amd.com>
Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
Fixes: f664a5269542 ("dma-buf: remove kmap_atomic interface")
Link: https://patchwork.freedesktop.org/series/45245/
drivers/gpu/drm/omapdrm/omap_gem_dmabuf.c

index 1a073f9..ec04a69 100644 (file)
@@ -93,23 +93,6 @@ static int omap_gem_dmabuf_end_cpu_access(struct dma_buf *buffer,
        return 0;
 }
 
-
-static void *omap_gem_dmabuf_kmap_atomic(struct dma_buf *buffer,
-               unsigned long page_num)
-{
-       struct drm_gem_object *obj = buffer->priv;
-       struct page **pages;
-       omap_gem_get_pages(obj, &pages, false);
-       omap_gem_cpu_sync_page(obj, page_num);
-       return kmap_atomic(pages[page_num]);
-}
-
-static void omap_gem_dmabuf_kunmap_atomic(struct dma_buf *buffer,
-               unsigned long page_num, void *addr)
-{
-       kunmap_atomic(addr);
-}
-
 static void *omap_gem_dmabuf_kmap(struct dma_buf *buffer,
                unsigned long page_num)
 {