Skip to content
Commit 274b3f7b authored by Christoph Hellwig's avatar Christoph Hellwig
Browse files

dma-contiguous: cleanup dma_alloc_contiguous



Split out a cma_alloc_aligned helper to deal with the "interesting"
calling conventions for cma_alloc, which then allows to the main
function to be written straight forward.  This also takes advantage
of the fact that NULL dev arguments have been gone from the DMA API
for a while.

Signed-off-by: default avatarChristoph Hellwig <hch@lst.de>
Reviewed-by: default avatarNicolin Chen <nicoleotsuka@gmail.com>
Reviewed-by: default avatarBarry Song <song.bao.hua@hisilicon.com>
parent 23efed6f
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment