metag: Provide dma_get_sgtable()
authorJames Hogan <james.hogan@imgtec.com>
Tue, 19 Feb 2013 13:25:46 +0000 (13:25 +0000)
committerJames Hogan <james.hogan@imgtec.com>
Sat, 2 Mar 2013 20:11:17 +0000 (20:11 +0000)
commitc60ac31542e93499b58dcfc1e3f6550ba5b5728e
tree9546eac961af7a343eefc302f81f0e70d1298cf9
parent2742c52655cff867fbf55e2e9cb993b8f965b7d7
metag: Provide dma_get_sgtable()

metag/allmodconfig:

drivers/media/v4l2-core/videobuf2-dma-contig.c: In function 'vb2_dc_get_base_sgt':
drivers/media/v4l2-core/videobuf2-dma-contig.c:387: error: implicit declaration of function 'dma_get_sgtable'

For architectures using dma_map_ops, dma_get_sgtable() is provided in
<asm-generic/dma-mapping-common.h>.

Metag does not use dma_map_ops yet, hence it should implement it as an
inline stub using dma_common_get_sgtable().

Signed-off-by: James Hogan <james.hogan@imgtec.com>
Cc: Geert Uytterhoeven <geert@linux-m68k.org>
Acked-by: Marek Szyprowski <m.szyprowski@samsung.com>
arch/metag/include/asm/dma-mapping.h