danube to ifxmips transition
[openwrt/svn-archive/archive.git] / target / linux / ifxmips / patches / 160-cfi-swap.patch
1 Index: linux-2.6.23/drivers/mtd/chips/cfi_cmdset_0002.c
2 ===================================================================
3 --- linux-2.6.23.orig/drivers/mtd/chips/cfi_cmdset_0002.c 2007-11-02 23:02:29.000000000 +0100
4 +++ linux-2.6.23/drivers/mtd/chips/cfi_cmdset_0002.c 2007-11-02 23:07:15.000000000 +0100
5 @@ -1007,7 +1007,9 @@
6 int ret = 0;
7 map_word oldd;
8 int retry_cnt = 0;
9 -
10 +#ifdef CONFIG_IFXMIPS
11 + adr ^= 2;
12 +#endif
13 adr += chip->start;
14
15 spin_lock(chip->mutex);