From: Jean-Christophe PLAGNIOL-VILLARD Date: Sun, 22 Feb 2009 18:13:32 +0100 Subject: [U-Boot] [PATCH 1/1] nomadik/nand: fix 'ecc512' discards qualifiers from pointer target type In-Reply-To: <1235322813-6604-1-git-send-email-plagnioj@jcrosoft.com> References: <1235322813-6604-1-git-send-email-plagnioj@jcrosoft.com> Message-ID: <1235322813-6604-2-git-send-email-plagnioj@jcrosoft.com> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD --- drivers/mtd/nand/nomadik.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/drivers/mtd/nand/nomadik.c b/drivers/mtd/nand/nomadik.c index 08944d1..b76f4cb 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; -- 1.5.6.5