Skip to content

Commit

Permalink
m68k/amiga: Chip RAM - Offset resource end by CHIP_PHYSADDR
Browse files Browse the repository at this point in the history
Technically, the end of Chip RAM should be offset by CHIP_PHYSADDR (which is
zero).

Signed-off-by: Geert Uytterhoeven <geert@linux-m68k.org>
  • Loading branch information
Geert Uytterhoeven committed Jul 30, 2011
1 parent cb4f998 commit 1dad6c7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion arch/m68k/amiga/chipram.c
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ void __init amiga_chip_init(void)
if (!AMIGAHW_PRESENT(CHIP_RAM))
return;

chipram_res.end = amiga_chip_size-1;
chipram_res.end = CHIP_PHYSADDR + amiga_chip_size - 1;
request_resource(&iomem_resource, &chipram_res);

atomic_set(&chipavail, amiga_chip_size);
Expand Down

0 comments on commit 1dad6c7

Please sign in to comment.