summaryrefslogtreecommitdiff
path: root/drivers/mtd/nand/nomadik.c
diff options
context:
space:
mode:
authorJean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>2009-02-22 17:56:50 +0100
committerJean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>2009-02-22 17:56:50 +0100
commit0176c03a2469676df5bf19cf93a1a6f582f6a120 (patch)
tree7e276b28ec694d066ee00700ef37ba1e958d742c /drivers/mtd/nand/nomadik.c
parent9751a456f702ba2fcdfd1bdbc0138927ef007858 (diff)
downloadu-boot-imx-0176c03a2469676df5bf19cf93a1a6f582f6a120.zip
u-boot-imx-0176c03a2469676df5bf19cf93a1a6f582f6a120.tar.gz
u-boot-imx-0176c03a2469676df5bf19cf93a1a6f582f6a120.tar.bz2
nomadik/nand: fix 'ecc512' discards qualifiers from pointer target type
Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
Diffstat (limited to 'drivers/mtd/nand/nomadik.c')
-rw-r--r--drivers/mtd/nand/nomadik.c2
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;