[PATCH] mdt nand: omap2+ use platform options
Jan Weitzel
j.weitzel at phytec.de
Tue Nov 29 04:00:13 EST 2011
Options from struct omap_nand_platform_data are not used.
Apply options after nand_scan_ident to avoid overwrite due to
NAND_CHIPOPTIONS_MSK.
So you can pass options from platformcode
Signed-off-by: Jan Weitzel <j.weitzel at phytec.de>
---
drivers/mtd/nand/omap2.c | 2 ++
1 files changed, 2 insertions(+), 0 deletions(-)
diff --git a/drivers/mtd/nand/omap2.c b/drivers/mtd/nand/omap2.c
index f745f00..7de4c0e 100644
--- a/drivers/mtd/nand/omap2.c
+++ b/drivers/mtd/nand/omap2.c
@@ -1075,6 +1075,8 @@ static int __devinit omap_nand_probe(struct platform_device *pdev)
}
}
+ info->nand.options |= pdata->options;
+
/* rom code layout */
if (pdata->ecc_opt == OMAP_ECC_HAMMING_CODE_HW_ROMCODE) {
--
1.7.0.4
More information about the linux-mtd
mailing list