From: Thomas Kunze <thommycheck@gmx.de>
To: David Woodhouse <dwmw2@infradead.org>
Cc: linux-mtd@lists.infradead.org
Subject: Re: [PATCH] fix cfi for collie flash
Date: Wed, 23 Apr 2008 03:16:09 +0200 [thread overview]
Message-ID: <480E8DD9.3030108@gmx.de> (raw)
In-Reply-To: <1208910618.9212.701.camel@pmac.infradead.org>
Again with (hopefully) no line wrappings.
Signed-off-by: Thomas Kunze <thommycheck@gmx.de>
diff --git a/drivers/mtd/chips/cfi_cmdset_0001.c
b/drivers/mtd/chips/cfi_cmdset_0001.c
index 0080452..34da59b 100644
--- a/drivers/mtd/chips/cfi_cmdset_0001.c
+++ b/drivers/mtd/chips/cfi_cmdset_0001.c
@@ -618,7 +618,11 @@ static int cfi_intelext_partition_fixup(struct
mtd_info *mtd,
+ (rinfo->NumBlockTypes - 1) *
sizeof(struct cfi_intelext_blockinfo);
}
-
+
+ /* if numregions=0 we have one big partition */
+ if(!numparts)
+ numparts = 1;
+
/* Programming Region info */
if (extp->MinorVersion >= '4') {
struct cfi_intelext_programming_regioninfo *prinfo;
next prev parent reply other threads:[~2008-04-23 1:16 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-04-22 23:40 [PATCH] fix cfi for collie flash Thomas Kunze
2008-04-23 0:30 ` David Woodhouse
2008-04-23 1:16 ` Thomas Kunze [this message]
2008-04-23 1:22 ` David Woodhouse
2008-04-23 1:28 ` Thomas Kunze
2008-04-23 1:31 ` David Woodhouse
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=480E8DD9.3030108@gmx.de \
--to=thommycheck@gmx.de \
--cc=dwmw2@infradead.org \
--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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.