summaryrefslogtreecommitdiffstats
path: root/drivers/mtd/nand/nand_omap_gpmc.c
diff options
context:
space:
mode:
authorSascha Hauer <s.hauer@pengutronix.de>2012-06-30 21:25:33 +0200
committerSascha Hauer <s.hauer@pengutronix.de>2012-07-25 09:27:28 +0200
commit2f1d3b49d1d069f8e9f2299d2d884d4653cca869 (patch)
treef27240950dcf3ee89e71867f111cdf8a5cf6d2d4 /drivers/mtd/nand/nand_omap_gpmc.c
parent1145c2fb1e94b50ff2618637696317153c72f8ac (diff)
downloadbarebox-2f1d3b49d1d069f8e9f2299d2d884d4653cca869.tar.gz
barebox-2f1d3b49d1d069f8e9f2299d2d884d4653cca869.tar.xz
mtd omap: add prefix to omap specific decode_bch function
So that it does not collide with our generic decode_bch function. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'drivers/mtd/nand/nand_omap_gpmc.c')
-rw-r--r--drivers/mtd/nand/nand_omap_gpmc.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/mtd/nand/nand_omap_gpmc.c b/drivers/mtd/nand/nand_omap_gpmc.c
index d55dcaad42..86d45748ed 100644
--- a/drivers/mtd/nand/nand_omap_gpmc.c
+++ b/drivers/mtd/nand/nand_omap_gpmc.c
@@ -90,7 +90,7 @@
#define GPMC_ECC_SIZE_CONFIG_ECCSIZE0(x) ((x) << 12)
#define GPMC_ECC_SIZE_CONFIG_ECCSIZE1(x) ((x) << 22)
-int decode_bch(int select_4_8, unsigned char *ecc, unsigned int *err_loc);
+int omap_gpmc_decode_bch(int select_4_8, unsigned char *ecc, unsigned int *err_loc);
static char *ecc_mode_strings[] = {
"software",
@@ -400,7 +400,7 @@ static int omap_correct_bch(struct mtd_info *mtd, uint8_t *dat,
count = 0;
if (eccflag == 1) {
- count = decode_bch(select_4_8, calc_ecc, err_loc);
+ count = omap_gpmc_decode_bch(select_4_8, calc_ecc, err_loc);
if (count < 0)
return count;
else