dma-mapping: implement dmam_alloc_coherent using dmam_alloc_attrs
authorChristoph Hellwig <hch@lst.de>
Tue, 25 Dec 2018 16:44:19 +0000 (17:44 +0100)
committerChristoph Hellwig <hch@lst.de>
Fri, 4 Jan 2019 08:03:16 +0000 (09:03 +0100)
commitd7076f07840851bbe57cb21ba052d6a4a9b1efa9
tree2cebc6f27705cdc0049be2489a7ff353f096b9f7
parent2e05ea5cdc1ac55d9ef678ed5ea6c38acf7fd2a3
dma-mapping: implement dmam_alloc_coherent using dmam_alloc_attrs

dmam_alloc_coherent is just the default no-flags case of
dmam_alloc_attrs, so take advantage of this similar to the non-managed
version.

Signed-off-by: Christoph Hellwig <hch@lst.de>
include/linux/dma-mapping.h
kernel/dma/mapping.c