Skip to content

Commit

Permalink
mtd: mxc_nand: reorder part_probes to let cmdline override other sources
Browse files Browse the repository at this point in the history
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>
Acked-by: Sascha Hauer <s.hauer@pengutronix.de>
Signed-off-by: Artem Bityutskiy <artem.bityutskiy@linux.intel.com>
  • Loading branch information
Lothar Waßmann authored and Artem Bityutskiy committed Dec 10, 2012
1 parent c10d8ee commit 740bb0c
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion drivers/mtd/nand/mxc_nand.c
Original file line number Diff line number Diff line change
Expand Up @@ -272,7 +272,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)
{
Expand Down

0 comments on commit 740bb0c

Please sign in to comment.