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

Commit c6c22955 authored by Marek Szyprowski's avatar Marek Szyprowski Committed by Mauro Carvalho Chehab
Browse files

[media] dma-mapping: fix dma_common_get_sgtable() conditional compilation



dma_common_get_sgtable() function doesn't depend on
ARCH_HAS_DMA_DECLARE_COHERENT_MEMORY, so it must not be compiled
conditionally.

Reported-by: default avatarStephen Rothwell <sfr@canb.auug.org.au>
Signed-off-by: default avatarMarek Szyprowski <m.szyprowski@samsung.com>
Acked-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: default avatarMauro Carvalho Chehab <mchehab@redhat.com>
parent cf38f41d
Loading
Loading
Loading
Loading
+2 −2
Original line number Original line Diff line number Diff line
@@ -218,6 +218,8 @@ void dmam_release_declared_memory(struct device *dev)
}
}
EXPORT_SYMBOL(dmam_release_declared_memory);
EXPORT_SYMBOL(dmam_release_declared_memory);


#endif

/*
/*
 * Create scatter-list for the already allocated DMA buffer.
 * Create scatter-list for the already allocated DMA buffer.
 */
 */
@@ -236,8 +238,6 @@ int dma_common_get_sgtable(struct device *dev, struct sg_table *sgt,
}
}
EXPORT_SYMBOL(dma_common_get_sgtable);
EXPORT_SYMBOL(dma_common_get_sgtable);


#endif

/*
/*
 * Create userspace mapping for the DMA-coherent memory.
 * Create userspace mapping for the DMA-coherent memory.
 */
 */