Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 4adc1837 authored by Christian König's avatar Christian König Committed by Christian König
Browse files

drm/omap: remove now unused functions



Some functions are unused after removal of the kmap_atomic
DMA-buf interface.

Signed-off-by: default avatarChristian König <christian.koenig@amd.com>
Reviewed-by: default avatarAlex Deucher <alexander.deucher@amd.com>
Fixes: f664a526 ("dma-buf: remove kmap_atomic interface")
Link: https://patchwork.freedesktop.org/series/45245/
parent 14d1d190
Loading
Loading
Loading
Loading
+0 −17
Original line number Original line Diff line number Diff line
@@ -93,23 +93,6 @@ static int omap_gem_dmabuf_end_cpu_access(struct dma_buf *buffer,
	return 0;
	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,
static void *omap_gem_dmabuf_kmap(struct dma_buf *buffer,
		unsigned long page_num)
		unsigned long page_num)
{
{