diff options
Diffstat (limited to 'arch/arm/mm/dma-mapping.c')
-rw-r--r-- | arch/arm/mm/dma-mapping.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/arch/arm/mm/dma-mapping.c b/arch/arm/mm/dma-mapping.c index f61a5707823a..11b3914660d2 100644 --- a/arch/arm/mm/dma-mapping.c +++ b/arch/arm/mm/dma-mapping.c | |||
@@ -376,7 +376,7 @@ void __init init_dma_coherent_pool_size(unsigned long size) | |||
376 | static int __init atomic_pool_init(void) | 376 | static int __init atomic_pool_init(void) |
377 | { | 377 | { |
378 | struct dma_pool *pool = &atomic_pool; | 378 | struct dma_pool *pool = &atomic_pool; |
379 | pgprot_t prot = pgprot_dmacoherent(pgprot_kernel); | 379 | pgprot_t prot = pgprot_dmacoherent(PAGE_KERNEL); |
380 | gfp_t gfp = GFP_KERNEL | GFP_DMA; | 380 | gfp_t gfp = GFP_KERNEL | GFP_DMA; |
381 | unsigned long nr_pages = pool->size >> PAGE_SHIFT; | 381 | unsigned long nr_pages = pool->size >> PAGE_SHIFT; |
382 | unsigned long *bitmap; | 382 | unsigned long *bitmap; |
@@ -624,7 +624,7 @@ static void __free_from_contiguous(struct device *dev, struct page *page, | |||
624 | if (PageHighMem(page)) | 624 | if (PageHighMem(page)) |
625 | __dma_free_remap(cpu_addr, size); | 625 | __dma_free_remap(cpu_addr, size); |
626 | else | 626 | else |
627 | __dma_remap(page, size, pgprot_kernel); | 627 | __dma_remap(page, size, PAGE_KERNEL); |
628 | dma_release_from_contiguous(dev, page, size >> PAGE_SHIFT); | 628 | dma_release_from_contiguous(dev, page, size >> PAGE_SHIFT); |
629 | } | 629 | } |
630 | 630 | ||
@@ -1351,14 +1351,14 @@ static void __iommu_free_atomic(struct device *dev, void *cpu_addr, | |||
1351 | static void *arm_iommu_alloc_attrs(struct device *dev, size_t size, | 1351 | static void *arm_iommu_alloc_attrs(struct device *dev, size_t size, |
1352 | dma_addr_t *handle, gfp_t gfp, struct dma_attrs *attrs) | 1352 | dma_addr_t *handle, gfp_t gfp, struct dma_attrs *attrs) |
1353 | { | 1353 | { |
1354 | pgprot_t prot = __get_dma_pgprot(attrs, pgprot_kernel); | 1354 | pgprot_t prot = __get_dma_pgprot(attrs, PAGE_KERNEL); |
1355 | struct page **pages; | 1355 | struct page **pages; |
1356 | void *addr = NULL; | 1356 | void *addr = NULL; |
1357 | 1357 | ||
1358 | *handle = DMA_ERROR_CODE; | 1358 | *handle = DMA_ERROR_CODE; |
1359 | size = PAGE_ALIGN(size); | 1359 | size = PAGE_ALIGN(size); |
1360 | 1360 | ||
1361 | if (gfp & GFP_ATOMIC) | 1361 | if (!(gfp & __GFP_WAIT)) |
1362 | return __iommu_alloc_atomic(dev, size, handle); | 1362 | return __iommu_alloc_atomic(dev, size, handle); |
1363 | 1363 | ||
1364 | /* | 1364 | /* |