Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 98216260 authored by FUJITA Tomonori's avatar FUJITA Tomonori Committed by Ingo Molnar
Browse files

x86: convert dma_alloc_coherent to use is_device_dma_capable

parent 8a493d37
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -278,7 +278,7 @@ dma_alloc_coherent(struct device *dev, size_t size, dma_addr_t *dma_handle,
		gfp |= GFP_DMA;
	}

	if (!dev->dma_mask)
	if (!is_device_dma_capable(dev))
		return NULL;

	if (!ops->alloc_coherent)