|
@@ -1237,6 +1237,7 @@ static int __maybe_unused omap_calculate_ecc_bch(struct mtd_info *mtd,
|
|
|
return 0;
|
|
|
}
|
|
|
|
|
|
+#ifdef CONFIG_MTD_NAND_OMAP_BCH
|
|
|
/**
|
|
|
* erased_sector_bitflips - count bit flips
|
|
|
* @data: data sector buffer
|
|
@@ -1276,7 +1277,6 @@ static int erased_sector_bitflips(u_char *data, u_char *oob,
|
|
|
return flip_bits;
|
|
|
}
|
|
|
|
|
|
-#ifdef CONFIG_MTD_NAND_OMAP_BCH
|
|
|
/**
|
|
|
* omap_elm_correct_data - corrects page data area in case error reported
|
|
|
* @mtd: MTD device structure
|