Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 279873
b: refs/heads/master
c: d88cc28
h: refs/heads/master
i:
  279871: d2fcafa
v: v3
  • Loading branch information
Nicolas Pitre authored and Nicolas Pitre committed Nov 18, 2011
1 parent 478e24f commit c99d3fc
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 30 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: a8ceac5ef7a98a1c36030e1ebd3f32f105fde288
refs/heads/master: d88cc28799fd5ad2987e6b1ff2a3c4d5a039cbaf
29 changes: 0 additions & 29 deletions trunk/arch/arm/mach-ixp23xx/include/mach/io.h
Original file line number Diff line number Diff line change
Expand Up @@ -20,33 +20,4 @@
#define __io(p) ((void __iomem*)((p) + IXP23XX_PCI_IO_VIRT))
#define __mem_pci(a) (a)

static inline void __iomem *
ixp23xx_ioremap(unsigned long addr, unsigned long size, unsigned int mtype)
{
if (addr >= IXP23XX_PCI_MEM_START &&
addr <= IXP23XX_PCI_MEM_START + IXP23XX_PCI_MEM_SIZE) {
if (addr + size > IXP23XX_PCI_MEM_START + IXP23XX_PCI_MEM_SIZE)
return NULL;

return (void __iomem *)
((addr - IXP23XX_PCI_MEM_START) + IXP23XX_PCI_MEM_VIRT);
}

return __arm_ioremap(addr, size, mtype);
}

static inline void
ixp23xx_iounmap(void __iomem *addr)
{
if ((((u32)addr) >= IXP23XX_PCI_MEM_VIRT) &&
(((u32)addr) < IXP23XX_PCI_MEM_VIRT + IXP23XX_PCI_MEM_SIZE))
return;

__iounmap(addr);
}

#define __arch_ioremap ixp23xx_ioremap
#define __arch_iounmap ixp23xx_iounmap


#endif

0 comments on commit c99d3fc

Please sign in to comment.