[kernel] 2.6.26: fix gpio_dev compile error
[openwrt.git] / target / linux / ifxmips / patches / 160-cfi-swap.patch
1 Index: linux-2.6.25.4/drivers/mtd/chips/cfi_cmdset_0002.c
2 ===================================================================
3 --- linux-2.6.25.4.orig/drivers/mtd/chips/cfi_cmdset_0002.c
4 +++ linux-2.6.25.4/drivers/mtd/chips/cfi_cmdset_0002.c
5 @@ -1015,7 +1015,9 @@ static int __xipram do_write_oneword(str
6 int retry_cnt = 0;
7
8 adr += chip->start;
9 -
10 +#ifdef CONFIG_IFXMIPS
11 + adr ^= 2;
12 +#endif
13 spin_lock(chip->mutex);
14 ret = get_chip(map, chip, adr, FL_WRITING);
15 if (ret) {
This page took 0.051432 seconds and 5 git commands to generate.