OSDN Git Service
(root)
/
uclinux-h8
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f696aa4
)
mtd/nand/r852: Use pci_dma_mapping_error()
author
David Woodhouse
<David.Woodhouse@intel.com>
Thu, 11 Mar 2010 17:25:14 +0000
(09:25 -0800)
committer
David Woodhouse
<David.Woodhouse@intel.com>
Thu, 11 Mar 2010 17:25:18 +0000
(09:25 -0800)
... instead of comparing with DMA_ERROR_CODE, which will only work on
powerpc/sparc/x86.
Reported-by: Geert Uytterhoeven <geert@linux-m68k.org>
Signed-off-by: David Woodhouse <David.Woodhouse@intel.com>
drivers/mtd/nand/r852.c
patch
|
blob
|
history
diff --git
a/drivers/mtd/nand/r852.c
b/drivers/mtd/nand/r852.c
index
06f07bb
..
96bfbd8
100644
(file)
--- a/
drivers/mtd/nand/r852.c
+++ b/
drivers/mtd/nand/r852.c
@@
-197,7
+197,7
@@
static void r852_do_dma(struct r852_device *dev, uint8_t *buf, int do_read)
R852_DMA_LEN,
(do_read ? PCI_DMA_FROMDEVICE : PCI_DMA_TODEVICE));
- if (
dev->phys_dma_addr == DMA_ERROR_CODE
)
+ if (
pci_dma_mapping_error(dev->pci_dev, dev->phys_dma_addr)
)
bounce = 1;
}