diff options
author | David Woodhouse <David.Woodhouse@intel.com> | 2010-03-11 12:25:14 -0500 |
---|---|---|
committer | David Woodhouse <David.Woodhouse@intel.com> | 2010-03-11 12:25:18 -0500 |
commit | 0c82d3ce2f479c728f99e228d9ae32a9cd853c5a (patch) | |
tree | a3bd88f2d647b29658c24e33cb393fb763bff65a /drivers/mtd/nand/r852.c | |
parent | f696aa43fadb13a21c4e723fb6e51bf640dd1363 (diff) |
mtd/nand/r852: Use pci_dma_mapping_error()
... 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>
Diffstat (limited to 'drivers/mtd/nand/r852.c')
-rw-r--r-- | drivers/mtd/nand/r852.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/mtd/nand/r852.c b/drivers/mtd/nand/r852.c index 06f07bb414a8..96bfbd8e8fdb 100644 --- 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) | |||
197 | R852_DMA_LEN, | 197 | R852_DMA_LEN, |
198 | (do_read ? PCI_DMA_FROMDEVICE : PCI_DMA_TODEVICE)); | 198 | (do_read ? PCI_DMA_FROMDEVICE : PCI_DMA_TODEVICE)); |
199 | 199 | ||
200 | if (dev->phys_dma_addr == DMA_ERROR_CODE) | 200 | if (pci_dma_mapping_error(dev->pci_dev, dev->phys_dma_addr)) |
201 | bounce = 1; | 201 | bounce = 1; |
202 | } | 202 | } |
203 | 203 | ||