diff options
Diffstat (limited to 'arch/cris')
-rw-r--r-- | arch/cris/arch-v32/drivers/pci/dma.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/cris/arch-v32/drivers/pci/dma.c b/arch/cris/arch-v32/drivers/pci/dma.c index 70d3bf0c92e8..832fc63504d4 100644 --- a/arch/cris/arch-v32/drivers/pci/dma.c +++ b/arch/cris/arch-v32/drivers/pci/dma.c | |||
@@ -76,7 +76,7 @@ int dma_declare_coherent_memory(struct device *dev, dma_addr_t bus_addr, | |||
76 | { | 76 | { |
77 | void __iomem *mem_base; | 77 | void __iomem *mem_base; |
78 | int pages = size >> PAGE_SHIFT; | 78 | int pages = size >> PAGE_SHIFT; |
79 | int bitmap_size = (pages + 31)/32; | 79 | int bitmap_size = BITS_TO_LONGS(pages) * sizeof(long); |
80 | 80 | ||
81 | if ((flags & (DMA_MEMORY_MAP | DMA_MEMORY_IO)) == 0) | 81 | if ((flags & (DMA_MEMORY_MAP | DMA_MEMORY_IO)) == 0) |
82 | goto out; | 82 | goto out; |