]> git.sur5r.net Git - u-boot/blobdiff - drivers/mtd/nand/nomadik.c
NAND: show manufacturer and device ID for unknown chips
[u-boot] / 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;