mirror of
https://github.com/followmsi/android_kernel_google_msm.git
synced 2024-11-06 23:17:41 +00:00
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>
This commit is contained in:
parent
621266bdf4
commit
849593591c
1 changed files with 1 additions and 3 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue