summaryrefslogtreecommitdiffstats
path: root/drivers
diff options
context:
space:
mode:
authorAndrew Morton2006-11-29 01:19:14 +0100
committerDavid Woodhouse2006-11-29 01:19:14 +0100
commitce1060494a205d528aa72fea23bdae607396e621 (patch)
tree8c448c309fab422c33f2575e04e18bf69ff5068a /drivers
parent[MTD] [NAND] fix ifdef option in nand_ecc.c (diff)
downloadkernel-qcow2-linux-ce1060494a205d528aa72fea23bdae607396e621.tar.gz
kernel-qcow2-linux-ce1060494a205d528aa72fea23bdae607396e621.tar.xz
kernel-qcow2-linux-ce1060494a205d528aa72fea23bdae607396e621.zip
[MTD] Tidy bitrev usage in rtc_from4.c
Signed-off-by: Andrew Morton <akpm@osdl.org> Signed-off-by: David Woodhouse <dwmw2@infradead.org>
Diffstat (limited to 'drivers')
-rw-r--r--drivers/mtd/nand/rtc_from4.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/mtd/nand/rtc_from4.c b/drivers/mtd/nand/rtc_from4.c
index 4a83a7dd58da..02deec3ec264 100644
--- a/drivers/mtd/nand/rtc_from4.c
+++ b/drivers/mtd/nand/rtc_from4.c
@@ -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++;
}