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
5 * Put everything into 0x00-0xff region modulo 0x400
7 +#ifndef CONFIG_MIKROTIK_RB500
9 start = (start + 0x3ff) & ~0x3ff;
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)