projects
/
firefly-linux-kernel-4.4.55.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
621266b
)
sh: Fix up read-only variable assignment in pcibios_align_resource().
author
Paul Mundt
<lethal@linux-sh.org>
Thu, 28 Jan 2010 09:15:05 +0000
(18:15 +0900)
committer
Paul Mundt
<lethal@linux-sh.org>
Thu, 28 Jan 2010 09:15:05 +0000
(18:15 +0900)
arch/sh/drivers/pci/pci.c:167: error: assignment of read-only location '*res'
Signed-off-by: Paul Mundt <lethal@linux-sh.org>
arch/sh/drivers/pci/pci.c
patch
|
blob
|
history
diff --git
a/arch/sh/drivers/pci/pci.c
b/arch/sh/drivers/pci/pci.c
index c481df6390223c7d1a50469ee4c2b1f03c15f780..191075e91cda5a70bdc0b14cd62a220ae7923ee4 100644
(file)
--- 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;