aboutsummaryrefslogtreecommitdiffstats
path: root/arch/m68k
diff options
context:
space:
mode:
authorGeert Uytterhoeven <geert@linux-m68k.org>2011-05-22 05:09:02 -0400
committerGeert Uytterhoeven <geert@linux-m68k.org>2011-07-30 15:21:38 -0400
commit1dad6c7bd7dd158ef874f7382615cedc21a1f48d (patch)
tree6f30adc3fef091ae1485d36188c97ffa96785361 /arch/m68k
parentcb4f9988f86746fff3183d31381deb2b2a421a3a (diff)
m68k/amiga: Chip RAM - Offset resource end by CHIP_PHYSADDR
Technically, the end of Chip RAM should be offset by CHIP_PHYSADDR (which is zero). Signed-off-by: Geert Uytterhoeven <geert@linux-m68k.org>
Diffstat (limited to 'arch/m68k')
-rw-r--r--arch/m68k/amiga/chipram.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/m68k/amiga/chipram.c b/arch/m68k/amiga/chipram.c
index cfd3b7af26c6..4790f77cbd48 100644
--- a/arch/m68k/amiga/chipram.c
+++ b/arch/m68k/amiga/chipram.c
@@ -34,7 +34,7 @@ void __init amiga_chip_init(void)
34 if (!AMIGAHW_PRESENT(CHIP_RAM)) 34 if (!AMIGAHW_PRESENT(CHIP_RAM))
35 return; 35 return;
36 36
37 chipram_res.end = amiga_chip_size-1; 37 chipram_res.end = CHIP_PHYSADDR + amiga_chip_size - 1;
38 request_resource(&iomem_resource, &chipram_res); 38 request_resource(&iomem_resource, &chipram_res);
39 39
40 atomic_set(&chipavail, amiga_chip_size); 40 atomic_set(&chipavail, amiga_chip_size);