aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/mtd/nand
diff options
context:
space:
mode:
authorBrian Norris <computersforpeace@gmail.com>2013-10-30 19:39:51 -0400
committerBrian Norris <computersforpeace@gmail.com>2014-01-07 13:07:35 -0500
commitcf0e4d2b3faf9494bb6bd32141c0dcfceced1746 (patch)
tree9cb319fa3237a9726a311e49d46aac5760ede110 /drivers/mtd/nand
parent103cdd8520b5ec85ab4345f54db5cc32a517f468 (diff)
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: Brian Norris <computersforpeace@gmail.com> Tested-by: Pekon Gupta <pekon@ti.com>
Diffstat (limited to 'drivers/mtd/nand')
-rw-r--r--drivers/mtd/nand/omap2.c8
1 files changed, 1 insertions, 7 deletions
diff --git a/drivers/mtd/nand/omap2.c b/drivers/mtd/nand/omap2.c
index f77725009907..ef4190a02b7b 100644
--- a/drivers/mtd/nand/omap2.c
+++ b/drivers/mtd/nand/omap2.c
@@ -1730,13 +1730,7 @@ static int omap_nand_probe(struct platform_device *pdev)
1730 break; 1730 break;
1731 1731
1732 case NAND_OMAP_POLLED: 1732 case NAND_OMAP_POLLED:
1733 if (nand_chip->options & NAND_BUSWIDTH_16) { 1733 /* Use nand_base defaults for {read,write}_buf */
1734 nand_chip->read_buf = omap_read_buf16;
1735 nand_chip->write_buf = omap_write_buf16;
1736 } else {
1737 nand_chip->read_buf = omap_read_buf8;
1738 nand_chip->write_buf = omap_write_buf8;
1739 }
1740 break; 1734 break;
1741 1735
1742 case NAND_OMAP_PREFETCH_DMA: 1736 case NAND_OMAP_PREFETCH_DMA: