mtd/nand/r852: Use pci_dma_mapping_error()
authorDavid Woodhouse <David.Woodhouse@intel.com>
Thu, 11 Mar 2010 17:25:14 +0000 (09:25 -0800)
committerDavid Woodhouse <David.Woodhouse@intel.com>
Thu, 11 Mar 2010 17:25:18 +0000 (09:25 -0800)
commit0c82d3ce2f479c728f99e228d9ae32a9cd853c5a
treea3bd88f2d647b29658c24e33cb393fb763bff65a
parentf696aa43fadb13a21c4e723fb6e51bf640dd1363
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>
drivers/mtd/nand/r852.c