[ARM] Orion: fix ioremap() optimization
authorNicolas Pitre <nico@cam.org>
Fri, 25 Apr 2008 18:28:55 +0000 (14:28 -0400)
committerNicolas Pitre <nico@cam.org>
Mon, 28 Apr 2008 19:57:41 +0000 (15:57 -0400)
commitfd153abb01c3fbcc47cd4ac3c0bc8801cfcc0009
tree938413e50e7a5afcd96f1c9a8d9c732f2397d758
parentc5a1e8f7091c33c7f6b53f070d13380facab6607
[ARM] Orion: fix ioremap() optimization

The ioremap() optimization used for internal register didn't cope
with the fact that paddr + size can wrap to zero if the area extends
to the end of the physical address space.

Issue isolated by Sylver Bruneau <sylver.bruneau@googlemail.com>.

Signed-off-by: Nicolas Pitre <nico@marvell.com>
include/asm-arm/arch-orion5x/io.h