From: Heiko Schocher <hs@denx.de>
Cc: Artem Bityutskiy <Artem.Bityutskiy@nokia.com>,
David Brownell <dbrownell@users.sourceforge.net>,
David Woodhouse <David.Woodhouse@intel.com>,
linux-mtd@lists.infradead.org, Heiko Schocher <hs@denx.de>
Subject: [PATCH] nand, davinci: if no amif timing is passed, don; t setup cscfg register
Date: Sun, 4 Dec 2011 10:37:36 +0100 [thread overview]
Message-ID: <1322991456-20690-1-git-send-email-hs@denx.de> (raw)
Signed-off-by: Heiko Schocher <hs@denx.de>
Cc: linux-mtd@lists.infradead.org
Cc: Artem Bityutskiy <Artem.Bityutskiy@nokia.com>
Cc: David Woodhouse <David.Woodhouse@intel.com>
Cc: David Brownell <dbrownell@users.sourceforge.net>
Cc: Wolfgang Denk <wd@denx.de>
---
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");
--
1.7.6.4
next reply other threads:[~2011-12-04 9:37 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-12-04 9:37 Heiko Schocher [this message]
2011-12-05 6:53 ` [PATCH] nand, davinci: if no amif timing is passed, don; t setup cscfg register Artem Bityutskiy
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1322991456-20690-1-git-send-email-hs@denx.de \
--to=hs@denx.de \
--cc=Artem.Bityutskiy@nokia.com \
--cc=David.Woodhouse@intel.com \
--cc=dbrownell@users.sourceforge.net \
--cc=linux-mtd@lists.infradead.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox