From: Jean-Christophe PLAGNIOL-VILLARD Date: Sun, 22 Feb 2009 16:56:50 +0000 (+0100) Subject: nomadik/nand: fix 'ecc512' discards qualifiers from pointer target type X-Git-Url: http://git.dujemihanovic.xyz/?a=commitdiff_plain;h=0176c03a2469676df5bf19cf93a1a6f582f6a120;p=u-boot.git nomadik/nand: fix 'ecc512' discards qualifiers from pointer target type Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD --- diff --git a/drivers/mtd/nand/nomadik.c b/drivers/mtd/nand/nomadik.c index 08944d1cfa..b76f4cbb5e 100644 --- a/drivers/mtd/nand/nomadik.c +++ b/drivers/mtd/nand/nomadik.c @@ -42,7 +42,7 @@ static inline int parity(int b) /* b is really a byte; returns 0 or ~0 */ * HW claims to make the calculation but not the correction; so we must * recalculate the bytes for a comparison. */ -static int ecc512(unsigned char *data, unsigned char *ecc) +static int ecc512(const unsigned char *data, unsigned char *ecc) { int gpar = 0; int i, val, par;