]> git.kernelconcepts.de Git - karo-tx-uboot.git/commitdiff
nomadik/nand: fix 'ecc512' discards qualifiers from pointer target type
authorJean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
Sun, 22 Feb 2009 16:56:50 +0000 (17:56 +0100)
committerJean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
Sun, 22 Feb 2009 16:56:50 +0000 (17:56 +0100)
Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
drivers/mtd/nand/nomadik.c

index 08944d1cfa153786ee6f037d7c6bf0b54893124f..b76f4cbb5e6d43ab4217ddbdc15e6b735c7893f4 100644 (file)
@@ -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;