summaryrefslogtreecommitdiffstats
path: root/arch/sh/drivers
diff options
context:
space:
mode:
authorPaul Mundt <lethal@linux-sh.org>2010-01-28 18:15:05 +0900
committerPaul Mundt <lethal@linux-sh.org>2010-01-28 18:15:05 +0900
commit849593591ce3b5f9352966c9d410284dc04d03b6 (patch)
tree481c0e43522f96acfad5b8911b547fddaac82b35 /arch/sh/drivers
parent621266bdf4b78fa92f7eabd7688b86f0dbd61d64 (diff)
downloadlinux-849593591ce3b5f9352966c9d410284dc04d03b6.tar.gz
linux-849593591ce3b5f9352966c9d410284dc04d03b6.tar.bz2
linux-849593591ce3b5f9352966c9d410284dc04d03b6.zip
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 <lethal@linux-sh.org>
Diffstat (limited to 'arch/sh/drivers')
-rw-r--r--arch/sh/drivers/pci/pci.c4
1 files changed, 1 insertions, 3 deletions
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;