mtd, omap: fix case NAND_OMAP_GPMC_PREFETCH not defined
authorEgli, Samuel <samuel.egli@siemens.com>
Fri, 13 Feb 2015 14:47:10 +0000 (15:47 +0100)
committerTom Rini <trini@ti.com>
Mon, 16 Feb 2015 17:41:40 +0000 (12:41 -0500)
commit89831112d46fb19127f3de9cec781e5a9c28b281
treef1b122ae7a8acdc6fdbf155d3f6e1b2d926cf224
parent5745f8c4fd5807becf7f246625e153388293aedc
mtd, omap: fix case NAND_OMAP_GPMC_PREFETCH not defined

The patch c316f577b4b72d1a1aeb559e9b3fad20808f1ffd breaks
siemens boards because prefetch mode is not enabled.
I assume it breaks other boards as well that don't use
prefetch.

This patch sets read_buf to nand_read_buf if
NAND_OMAP_GPMC_PREFETCH is not defined.

Signed-off-by: Samuel Egli <samuel.egli@siemens.com>
CC: Daniel Mack <zonque@gmail.com>
CC: Guido Martínez <guido@vanguardiasur.com.ar>
CC: Tom Rini <trini@ti.com>
CC: Heiko Schocher <hs@denx.de>
drivers/mtd/nand/omap_gpmc.c