Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 740bb0c4 authored by Lothar Waßmann's avatar Lothar Waßmann Committed by Artem Bityutskiy
Browse files

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: default avatarLothar Waßmann <LW@KARO-electronics.de>
Acked-by: default avatarSascha Hauer <s.hauer@pengutronix.de>
Signed-off-by: default avatarArtem Bityutskiy <artem.bityutskiy@linux.intel.com>
parent c10d8ee3
Loading
Loading
Loading
Loading
+2 −1
Original line number Original line Diff line number Diff line
@@ -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)
static void memcpy32_fromio(void *trg, const void __iomem  *src, size_t size)
{
{