diff options
author | FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp> | 2009-07-09 21:04:55 -0400 |
---|---|---|
committer | FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp> | 2009-07-28 01:19:19 -0400 |
commit | a4c2baa6e148adfb27beaf16b6fb6d465b5b3acb (patch) | |
tree | 9e6a941b8721c745bf7e91341d63b0ebe0044aa6 /arch/x86/kernel/pci-dma.c | |
parent | 99becaca86d184a4433e9fde879ff97303d7669f (diff) |
x86: replace is_buffer_dma_capable() with dma_capable
Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
Diffstat (limited to 'arch/x86/kernel/pci-dma.c')
-rw-r--r-- | arch/x86/kernel/pci-dma.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/x86/kernel/pci-dma.c b/arch/x86/kernel/pci-dma.c index 1a041bcf506b..3c945c0b3501 100644 --- a/arch/x86/kernel/pci-dma.c +++ b/arch/x86/kernel/pci-dma.c | |||
@@ -147,7 +147,7 @@ again: | |||
147 | return NULL; | 147 | return NULL; |
148 | 148 | ||
149 | addr = page_to_phys(page); | 149 | addr = page_to_phys(page); |
150 | if (!is_buffer_dma_capable(dma_mask, addr, size)) { | 150 | if (addr + size > dma_mask) { |
151 | __free_pages(page, get_order(size)); | 151 | __free_pages(page, get_order(size)); |
152 | 152 | ||
153 | if (dma_mask < DMA_BIT_MASK(32) && !(flag & GFP_DMA)) { | 153 | if (dma_mask < DMA_BIT_MASK(32) && !(flag & GFP_DMA)) { |