Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 258119
b: refs/heads/master
c: f1ecc69
h: refs/heads/master
i:
  258117: e0f092a
  258115: bd6bff1
  258111: c576178
v: v3
  • Loading branch information
Jonas Bonn committed Jul 22, 2011
1 parent c1a8e56 commit 327556c
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 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: a4e05276a10198a1540dd1a0001f759c10ce1cf1
refs/heads/master: f1ecc69838a2d7c8a3e1909f637d4083c071777d
7 changes: 6 additions & 1 deletion trunk/include/asm-generic/io.h
Original file line number Diff line number Diff line change
Expand Up @@ -307,7 +307,11 @@ static inline void *phys_to_virt(unsigned long address)

/*
* Change "struct page" to physical address.
*
* This implementation is for the no-MMU case only... if you have an MMU
* you'll need to provide your own definitions.
*/
#ifndef CONFIG_MMU
static inline void __iomem *ioremap(phys_addr_t offset, unsigned long size)
{
return (void __iomem*) (unsigned long)offset;
Expand All @@ -326,6 +330,7 @@ static inline void __iomem *ioremap(phys_addr_t offset, unsigned long size)
static inline void iounmap(void *addr)
{
}
#endif /* CONFIG_MMU */

#ifndef CONFIG_GENERIC_IOMAP
static inline void __iomem *ioport_map(unsigned long port, unsigned int nr)
Expand All @@ -342,7 +347,7 @@ extern void ioport_unmap(void __iomem *p);
#endif /* CONFIG_GENERIC_IOMAP */

#define xlate_dev_kmem_ptr(p) p
#define xlate_dev_mem_ptr(p) ((void *) (p))
#define xlate_dev_mem_ptr(p) __va(p)

#ifndef virt_to_bus
static inline unsigned long virt_to_bus(volatile void *address)
Expand Down

0 comments on commit 327556c

Please sign in to comment.