cross-tree: phase out dma_zalloc_coherent() on headers
The last few stragglers coccinelle doesn't pick up are on driver specific header files. Phase those out as well as dma_alloc_coherent() zeroes out the memory as well now too. Suggested-by: Christoph Hellwig <hch@lst.de> Signed-off-by: Luis Chamberlain <mcgrof@kernel.org> Signed-off-by: Christoph Hellwig <hch@lst.de>
This commit is contained in:

committed by
Christoph Hellwig

parent
750afb08ca
commit
07a85fe142
@@ -64,7 +64,7 @@ static inline int qmem_alloc(struct device *dev, struct qmem **q,
|
||||
|
||||
qmem->entry_sz = entry_sz;
|
||||
qmem->alloc_sz = (qsize * entry_sz) + OTX2_ALIGN;
|
||||
qmem->base = dma_zalloc_coherent(dev, qmem->alloc_sz,
|
||||
qmem->base = dma_alloc_coherent(dev, qmem->alloc_sz,
|
||||
&qmem->iova, GFP_KERNEL);
|
||||
if (!qmem->base)
|
||||
return -ENOMEM;
|
||||
|
Reference in New Issue
Block a user