[rb532] refresh 2.6.24 patches
[openwrt/svn-archive/archive.git] / target / linux / rb532 / patches-2.6.24 / 200-bridge_resource_hack.patch
1 --- a/arch/mips/pci/pci.c
2 +++ b/arch/mips/pci/pci.c
3 @@ -64,8 +64,10 @@ pcibios_align_resource(void *data, struc
4 /*
5 * Put everything into 0x00-0xff region modulo 0x400
6 */
7 +#ifndef CONFIG_MIKROTIK_RB500
8 if (start & 0x300)
9 start = (start + 0x3ff) & ~0x3ff;
10 +#endif
11 } else if (res->flags & IORESOURCE_MEM) {
12 /* Make sure we start at our min on all hoses */
13 if (start < PCIBIOS_MIN_MEM + hose->mem_resource->start)