From: "Lothar Waßmann" <LW@KARO-electronics.de>
To: linux-mtd@lists.infradead.org
Cc: "Artem Bityutskiy" <artem.bityutskiy@linux.intel.com>,
"Sascha Hauer" <s.hauer@pengutronix.de>,
linux-kernel@vger.kernel.org, "Shawn Guo" <shawn.guo@linaro.org>,
"David Woodhouse" <dwmw2@infradead.org>,
"Lothar Waßmann" <LW@KARO-electronics.de>
Subject: [PATCH 2/2] mtd: mxc_nand: reorder part_probes to let cmdline override other sources
Date: Thu, 6 Dec 2012 08:42:28 +0100 [thread overview]
Message-ID: <1354779748-28869-2-git-send-email-LW@KARO-electronics.de> (raw)
In-Reply-To: <1354779748-28869-1-git-send-email-LW@KARO-electronics.de>
The cmdline is the easiest to change source of information. Thus
let it take precedence over 'RedBoot' and 'ofpart'. This makes the
mxc_nand driver to be in sync with all other NAND drivers that support
'cmdlinepart' partition parsing.
Also change 'const char *' to 'const char const *' as advised by checkpatch.pl
Signed-off-by: Lothar Waßmann <LW@KARO-electronics.de>
---
drivers/mtd/nand/mxc_nand.c | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
diff --git a/drivers/mtd/nand/mxc_nand.c b/drivers/mtd/nand/mxc_nand.c
index d316324..fb98775 100644
--- a/drivers/mtd/nand/mxc_nand.c
+++ b/drivers/mtd/nand/mxc_nand.c
@@ -266,7 +266,8 @@ static struct nand_ecclayout nandv2_hw_eccoob_4k = {
}
};
-static const char *part_probes[] = { "RedBoot", "cmdlinepart", "ofpart", NULL };
+static const char const *part_probes[] = {
+ "cmdlinepart", "RedBoot", "ofpart", NULL };
static void memcpy32_fromio(void *trg, const void __iomem *src, size_t size)
{
--
1.7.2.5
next prev parent reply other threads:[~2012-12-06 7:42 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-12-06 7:42 [PATCH 1/2] mtd: mxc_nand: fix unbalanced clk_disable() in error path Lothar Waßmann
2012-12-06 7:42 ` Lothar Waßmann [this message]
2012-12-10 14:46 ` [PATCH 2/2] mtd: mxc_nand: reorder part_probes to let cmdline override other sources Artem Bityutskiy
2012-12-06 7:45 ` [PATCH 1/2] mtd: mxc_nand: fix unbalanced clk_disable() in error path Sascha Hauer
2012-12-10 14:46 ` 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=1354779748-28869-2-git-send-email-LW@KARO-electronics.de \
--to=lw@karo-electronics.de \
--cc=artem.bityutskiy@linux.intel.com \
--cc=dwmw2@infradead.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-mtd@lists.infradead.org \
--cc=s.hauer@pengutronix.de \
--cc=shawn.guo@linaro.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