mtd: omap2: use nand_base defaults for polled I/O
Linux-MTD Mailing List
linux-mtd at lists.infradead.org
Tue Jan 28 00:59:06 EST 2014
Gitweb: http://git.infradead.org/?p=mtd-2.6.git;a=commit;h=cf0e4d2b3faf9494bb6bd32141c0dcfceced1746
Commit: cf0e4d2b3faf9494bb6bd32141c0dcfceced1746
Parent: 103cdd8520b5ec85ab4345f54db5cc32a517f468
Author: Brian Norris <computersforpeace at gmail.com>
AuthorDate: Wed Oct 30 19:39:51 2013 -0400
Committer: Brian Norris <computersforpeace at gmail.com>
CommitDate: Tue Jan 7 10:07:35 2014 -0800
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 at gmail.com>
Tested-by: Pekon Gupta <pekon at ti.com>
---
drivers/mtd/nand/omap2.c | 8 +-------
1 file changed, 1 insertion(+), 7 deletions(-)
diff --git a/drivers/mtd/nand/omap2.c b/drivers/mtd/nand/omap2.c
index f777250..ef4190a 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)
break;
case NAND_OMAP_POLLED:
- if (nand_chip->options & NAND_BUSWIDTH_16) {
- 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;
- }
+ /* Use nand_base defaults for {read,write}_buf */
break;
case NAND_OMAP_PREFETCH_DMA:
More information about the linux-mtd-cvs
mailing list