Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 283211
b: refs/heads/master
c: 2ebf5d0
h: refs/heads/master
i:
  283209: 3dbc8b6
  283207: a95b118
v: v3
  • Loading branch information
Michael S. Tsirkin committed Dec 4, 2011
1 parent ba0b32b commit fa1aec7
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 9 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: 5322418502be4696ebdef2ed164bbd0a348d4816
refs/heads/master: 2ebf5d0d79087005e1042df2cd0f7594782746d8
16 changes: 8 additions & 8 deletions trunk/arch/mn10300/include/asm/io.h
Original file line number Diff line number Diff line change
Expand Up @@ -251,30 +251,30 @@ static inline void *phys_to_virt(unsigned long address)
/*
* Change "struct page" to physical address.
*/
static inline void *__ioremap(unsigned long offset, unsigned long size,
unsigned long flags)
static inline void __iomem *__ioremap(unsigned long offset, unsigned long size,
unsigned long flags)
{
return (void *) offset;
return (void __iomem *) offset;
}

static inline void *ioremap(unsigned long offset, unsigned long size)
static inline void __iomem *ioremap(unsigned long offset, unsigned long size)
{
return (void *) offset;
return (void __iomem *) offset;
}

/*
* This one maps high address device memory and turns off caching for that
* area. it's useful if some control registers are in such an area and write
* combining or read caching is not desirable:
*/
static inline void *ioremap_nocache(unsigned long offset, unsigned long size)
static inline void __iomem *ioremap_nocache(unsigned long offset, unsigned long size)
{
return (void *) (offset | 0x20000000);
return (void __iomem *) (offset | 0x20000000);
}

#define ioremap_wc ioremap_nocache

static inline void iounmap(void *addr)
static inline void iounmap(void __iomem *addr)
{
}

Expand Down

0 comments on commit fa1aec7

Please sign in to comment.