Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 94968
b: refs/heads/master
c: fd153ab
h: refs/heads/master
v: v3
  • Loading branch information
Nicolas Pitre committed Apr 28, 2008
1 parent bd54c14 commit a1cc54e
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 6 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: c5a1e8f7091c33c7f6b53f070d13380facab6607
refs/heads/master: fd153abb01c3fbcc47cd4ac3c0bc8801cfcc0009
9 changes: 4 additions & 5 deletions trunk/include/asm-arm/arch-orion5x/io.h
Original file line number Diff line number Diff line change
Expand Up @@ -20,11 +20,10 @@ static inline void __iomem *
__arch_ioremap(unsigned long paddr, size_t size, unsigned int mtype)
{
void __iomem *retval;

if (mtype == MT_DEVICE && size && paddr >= ORION5X_REGS_PHYS_BASE &&
paddr + size <= ORION5X_REGS_PHYS_BASE + ORION5X_REGS_SIZE) {
retval = (void __iomem *)ORION5X_REGS_VIRT_BASE +
(paddr - ORION5X_REGS_PHYS_BASE);
unsigned long offs = paddr - ORION5X_REGS_PHYS_BASE;
if (mtype == MT_DEVICE && size && offs < ORION5X_REGS_SIZE &&
size <= ORION5X_REGS_SIZE && offs + size <= ORION5X_REGS_SIZE) {
retval = (void __iomem *)ORION5X_REGS_VIRT_BASE + offs;
} else {
retval = __arm_ioremap(paddr, size, mtype);
}
Expand Down

0 comments on commit a1cc54e

Please sign in to comment.