mtd: nand: ecc-hamming: Rename the exported functions
[linux-2.6-microblaze.git] / drivers / mtd / nand / raw / sharpsl.c
index af98bcc..3f55b52 100644 (file)
@@ -12,7 +12,7 @@
 #include <linux/delay.h>
 #include <linux/mtd/mtd.h>
 #include <linux/mtd/rawnand.h>
-#include <linux/mtd/nand_ecc.h>
+#include <linux/mtd/nand-ecc-sw-hamming.h>
 #include <linux/mtd/partitions.h>
 #include <linux/mtd/sharpsl.h>
 #include <linux/interrupt.h>
@@ -107,7 +107,7 @@ static int sharpsl_attach_chip(struct nand_chip *chip)
        chip->ecc.strength = 1;
        chip->ecc.hwctl = sharpsl_nand_enable_hwecc;
        chip->ecc.calculate = sharpsl_nand_calculate_ecc;
-       chip->ecc.correct = nand_correct_data;
+       chip->ecc.correct = rawnand_sw_hamming_correct;
 
        return 0;
 }