diff options
author | Lothar Waßmann <LW@KARO-electronics.de> | 2012-12-06 02:42:28 -0500 |
---|---|---|
committer | Artem Bityutskiy <artem.bityutskiy@linux.intel.com> | 2012-12-10 09:45:12 -0500 |
commit | 740bb0c4b0bbeb8970d62157685f6d4a261036a0 (patch) | |
tree | 1e3c9133e09f223072293316b5b04e265413e93d /drivers/mtd | |
parent | c10d8ee3feaf725007e515b5f2972dffaa793f9a (diff) |
mtd: mxc_nand: reorder part_probes to let cmdline override other sources
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>
Diffstat (limited to 'drivers/mtd')
-rw-r--r-- | 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 ab0fe383c50b..9f10778a6524 100644 --- a/drivers/mtd/nand/mxc_nand.c +++ b/drivers/mtd/nand/mxc_nand.c | |||
@@ -272,7 +272,8 @@ static struct nand_ecclayout nandv2_hw_eccoob_4k = { | |||
272 | } | 272 | } |
273 | }; | 273 | }; |
274 | 274 | ||
275 | static const char *part_probes[] = { "RedBoot", "cmdlinepart", "ofpart", NULL }; | 275 | static const char const *part_probes[] = { |
276 | "cmdlinepart", "RedBoot", "ofpart", NULL }; | ||
276 | 277 | ||
277 | static void memcpy32_fromio(void *trg, const void __iomem *src, size_t size) | 278 | static void memcpy32_fromio(void *trg, const void __iomem *src, size_t size) |
278 | { | 279 | { |