[PATCH] tty: clarify disassociate_ctty
[powerpc.git] / drivers / mtd / nand / rtc_from4.c
index 4a83a7d..9189ec8 100644 (file)
@@ -357,7 +357,7 @@ static int rtc_from4_correct_data(struct mtd_info *mtd, const u_char *buf, u_cha
        /* Read the syndrom pattern from the FPGA and correct the bitorder */
        rs_ecc = (volatile unsigned short *)(rtc_from4_fio_base + RTC_FROM4_RS_ECC);
        for (i = 0; i < 8; i++) {
-               ecc[i] = byte_rev_table[(*rs_ecc) & 0xFF];
+               ecc[i] = bitrev8(*rs_ecc);
                rs_ecc++;
        }
 
@@ -456,7 +456,7 @@ static int rtc_from4_errstat(struct mtd_info *mtd, struct nand_chip *this,
                rtn = nand_do_read(mtd, page, len, &retlen, buf);
 
                /* if read failed or > 1-bit error corrected */
-               if (rtn || (mtd->ecc_stats.corrected - corrected) > 1) {
+               if (rtn || (mtd->ecc_stats.corrected - corrected) > 1)
                        er_stat |= 1 << 1;
                kfree(buf);
        }