Commit cf0e4d2b authored by Brian Norris's avatar Brian Norris

mtd: omap2: use nand_base defaults for polled I/O

The omap_{read,write}_buf{8,16}() functions are identical to the default
nand_base versions. Just let nand_base assign them in the
NAND_OMAP_POLLED case.
Signed-off-by: default avatarBrian Norris <computersforpeace@gmail.com>
Tested-by: default avatarPekon Gupta <pekon@ti.com>
parent 103cdd85
...@@ -1730,13 +1730,7 @@ static int omap_nand_probe(struct platform_device *pdev) ...@@ -1730,13 +1730,7 @@ static int omap_nand_probe(struct platform_device *pdev)
break; break;
case NAND_OMAP_POLLED: case NAND_OMAP_POLLED:
if (nand_chip->options & NAND_BUSWIDTH_16) { /* Use nand_base defaults for {read,write}_buf */
nand_chip->read_buf = omap_read_buf16;
nand_chip->write_buf = omap_write_buf16;
} else {
nand_chip->read_buf = omap_read_buf8;
nand_chip->write_buf = omap_write_buf8;
}
break; break;
case NAND_OMAP_PREFETCH_DMA: case NAND_OMAP_PREFETCH_DMA:
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment