From: Paul Mundt Date: Thu, 28 Jan 2010 09:15:05 +0000 (+0900) Subject: sh: Fix up read-only variable assignment in pcibios_align_resource(). X-Git-Tag: v2.6.34-rc1~285^2~69 X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=849593591ce3b5f9352966c9d410284dc04d03b6;p=karo-tx-linux.git sh: Fix up read-only variable assignment in pcibios_align_resource(). arch/sh/drivers/pci/pci.c:167: error: assignment of read-only location '*res' Signed-off-by: Paul Mundt --- diff --git a/arch/sh/drivers/pci/pci.c b/arch/sh/drivers/pci/pci.c index c481df639022..191075e91cda 100644 --- a/arch/sh/drivers/pci/pci.c +++ b/arch/sh/drivers/pci/pci.c @@ -162,10 +162,8 @@ void pcibios_align_resource(void *data, struct resource *res, /* * Put everything into 0x00-0xff region modulo 0x400. */ - if (start & 0x300) { + if (start & 0x300) start = (start + 0x3ff) & ~0x3ff; - res->start = start; - } } else if (res->flags & IORESOURCE_MEM) { if (start < PCIBIOS_MIN_MEM + chan->mem_resource->start) start = PCIBIOS_MIN_MEM + chan->mem_resource->start;