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

Commit 2b281296 authored by Christoph Hellwig's avatar Christoph Hellwig
Browse files

device.h: dma_mem is only needed for HAVE_GENERIC_DMA_COHERENT



No need to carry an unused field around.

Signed-off-by: default avatarChristoph Hellwig <hch@lst.de>
Reviewed-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent d0377392
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -1017,8 +1017,10 @@ struct device {

	struct list_head	dma_pools;	/* dma pools (if dma'ble) */

#ifdef CONFIG_HAVE_GENERIC_DMA_COHERENT
	struct dma_coherent_mem	*dma_mem; /* internal for coherent mem
					     override */
#endif
#ifdef CONFIG_DMA_CMA
	struct cma *cma_area;		/* contiguous memory area for dma
					   allocations */