diff options
Diffstat (limited to 'arch/mips/cavium-octeon/dma-octeon.c')
-rw-r--r-- | arch/mips/cavium-octeon/dma-octeon.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/arch/mips/cavium-octeon/dma-octeon.c b/arch/mips/cavium-octeon/dma-octeon.c index 41dd00884975..02f244475207 100644 --- a/arch/mips/cavium-octeon/dma-octeon.c +++ b/arch/mips/cavium-octeon/dma-octeon.c | |||
@@ -317,7 +317,8 @@ void __init plat_swiotlb_setup(void) | |||
317 | 317 | ||
318 | octeon_swiotlb = alloc_bootmem_low_pages(swiotlbsize); | 318 | octeon_swiotlb = alloc_bootmem_low_pages(swiotlbsize); |
319 | 319 | ||
320 | swiotlb_init_with_tbl(octeon_swiotlb, swiotlb_nslabs, 1); | 320 | if (swiotlb_init_with_tbl(octeon_swiotlb, swiotlb_nslabs, 1) == -ENOMEM) |
321 | panic("Cannot allocate SWIOTLB buffer"); | ||
321 | 322 | ||
322 | mips_dma_map_ops = &octeon_linear_dma_map_ops.dma_map_ops; | 323 | mips_dma_map_ops = &octeon_linear_dma_map_ops.dma_map_ops; |
323 | } | 324 | } |