]> git.kernelconcepts.de Git - karo-tx-linux.git/commitdiff
mtd: mxc_nand: reorder part_probes to let cmdline override other sources
authorLothar Waßmann <LW@KARO-electronics.de>
Thu, 6 Dec 2012 07:42:28 +0000 (08:42 +0100)
committerArtem Bityutskiy <artem.bityutskiy@linux.intel.com>
Mon, 10 Dec 2012 14:45:12 +0000 (16:45 +0200)
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>
drivers/mtd/nand/mxc_nand.c

index ab0fe383c50b75cacc8e1e0e4bc9c17eda17ec6a..9f10778a65243f6e8580051cd849e2c9cc144e32 100644 (file)
@@ -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)
 {