From: Jingoo Han Date: Wed, 7 Aug 2013 07:18:52 +0000 (+0900) Subject: mtd: nand: mxc_nand: mark 'const' properly X-Git-Tag: next-20130822~69^2~1 X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=400b8f6a8252c51887ccf149851b873ab594dfd0;p=karo-tx-linux.git mtd: nand: mxc_nand: mark 'const' properly The values pointed by the pointer are used as read-only. Also, mtd_device_parse_register() uses 'part_probes[]' as the second argument which is defined as 'const char * const *types'. Thus, the 'const' should be moved to be after the '*'. drivers/mtd/nand/mxc_nand.c:269:25: warning: duplicate const Signed-off-by: Jingoo Han Signed-off-by: Brian Norris --- diff --git a/drivers/mtd/nand/mxc_nand.c b/drivers/mtd/nand/mxc_nand.c index a99ff1d6d1ca..ce8242b6c3e7 100644 --- a/drivers/mtd/nand/mxc_nand.c +++ b/drivers/mtd/nand/mxc_nand.c @@ -266,7 +266,7 @@ static struct nand_ecclayout nandv2_hw_eccoob_4k = { } }; -static const char const *part_probes[] = { +static const char * const part_probes[] = { "cmdlinepart", "RedBoot", "ofpart", NULL }; static void memcpy32_fromio(void *trg, const void __iomem *src, size_t size)