summaryrefslogtreecommitdiff
path: root/lib/int_sqrt.c
diff options
context:
space:
mode:
authorMichael Schmitz <schmitzmic@gmail.com>2018-03-03 02:04:13 +0300
committerGeert Uytterhoeven <geert@linux-m68k.org>2018-03-19 12:26:46 +0300
commit55496d3fe2acd1a365c43cbd613a20ecd4d74395 (patch)
tree2347dfc6a9cfa5b3a9fc553ab1a89469ec5296ce /lib/int_sqrt.c
parent6efe2649a769bac00dbaee5214c49d80c86de2c9 (diff)
downloadlinux-55496d3fe2acd1a365c43cbd613a20ecd4d74395.tar.xz
zorro: Set up z->dev.dma_mask for the DMA API
The generic DMA API uses dev->dma_mask to check the DMA addressable memory bitmask, and warns if no mask is set or even allocated. Set z->dev.dma_coherent_mask on Zorro bus scan, and make z->dev.dma_mask to point to z->dev.dma_coherent_mask so device drivers that need DMA have everything set up to avoid warnings from dma_alloc_coherent(). Drivers can still use dma_set_mask_and_coherent() to explicitly set their DMA bit mask. Signed-off-by: Michael Schmitz <schmitzmic@gmail.com> [geert: Handle Zorro II with 24-bit address space] Acked-by: Christoph Hellwig <hch@lst.de> Signed-off-by: Geert Uytterhoeven <geert@linux-m68k.org>
Diffstat (limited to 'lib/int_sqrt.c')
0 files changed, 0 insertions, 0 deletions