Skip to content

Commit

Permalink
sh: Fix up read-only variable assignment in pcibios_align_resource().
Browse files Browse the repository at this point in the history
arch/sh/drivers/pci/pci.c:167: error: assignment of read-only location '*res'

Signed-off-by: Paul Mundt <lethal@linux-sh.org>
  • Loading branch information
Paul Mundt committed Jan 28, 2010
1 parent 621266b commit 8495935
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions arch/sh/drivers/pci/pci.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 8495935

Please sign in to comment.