mtd: davinci: if no amif timing is passed, don; t setup cscfg register

Linux-MTD Mailing List linux-mtd at lists.infradead.org
Mon Jan 9 13:59:06 EST 2012


Gitweb:     http://git.infradead.org/?p=mtd-2.6.git;a=commit;h=47882d78250a8b92a9837d14bab32915622a9f12
Commit:     47882d78250a8b92a9837d14bab32915622a9f12
Parent:     e32de766c2eb65f775438dd6d8ec5007619d2fe5
Author:     Heiko Schocher <hs at denx.de>
AuthorDate: Sun Dec 4 10:37:36 2011 +0100
Committer:  David Woodhouse <David.Woodhouse at intel.com>
CommitDate: Mon Jan 9 18:13:25 2012 +0000

    mtd: davinci: if no amif timing is passed, don; t setup cscfg register
    
    Signed-off-by: Heiko Schocher <hs at denx.de>
    Signed-off-by: Artem Bityutskiy <Artem.Bityutskiy at linux.intel.com>
    Signed-off-by: David Woodhouse <David.Woodhouse at intel.com>
---
 drivers/mtd/nand/davinci_nand.c |    4 +++-
 1 files changed, 3 insertions(+), 1 deletions(-)

diff --git a/drivers/mtd/nand/davinci_nand.c b/drivers/mtd/nand/davinci_nand.c
index c153e1f..6e56615 100644
--- a/drivers/mtd/nand/davinci_nand.c
+++ b/drivers/mtd/nand/davinci_nand.c
@@ -675,7 +675,9 @@ static int __init nand_davinci_probe(struct platform_device *pdev)
 
 	davinci_nand_writel(info, A1CR_OFFSET + info->core_chipsel * 4, val);
 
-	ret = davinci_aemif_setup_timing(info->timing, info->base,
+	ret = 0;
+	if (info->timing)
+		ret = davinci_aemif_setup_timing(info->timing, info->base,
 							info->core_chipsel);
 	if (ret < 0) {
 		dev_dbg(&pdev->dev, "NAND timing values setup fail\n");



More information about the linux-mtd-cvs mailing list