diff options
Diffstat (limited to 'arch/sh/mm/ioremap_32.c')
-rw-r--r-- | arch/sh/mm/ioremap_32.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/arch/sh/mm/ioremap_32.c b/arch/sh/mm/ioremap_32.c index a86eaa9d75a5..2141befb4f91 100644 --- a/arch/sh/mm/ioremap_32.c +++ b/arch/sh/mm/ioremap_32.c | |||
@@ -33,10 +33,10 @@ | |||
33 | * have to convert them into an offset in a page-aligned mapping, but the | 33 | * have to convert them into an offset in a page-aligned mapping, but the |
34 | * caller shouldn't need to know that small detail. | 34 | * caller shouldn't need to know that small detail. |
35 | */ | 35 | */ |
36 | void __iomem *__ioremap(unsigned long phys_addr, unsigned long size, | 36 | void __iomem *__ioremap_caller(unsigned long phys_addr, unsigned long size, |
37 | unsigned long flags) | 37 | unsigned long flags, void *caller) |
38 | { | 38 | { |
39 | struct vm_struct * area; | 39 | struct vm_struct *area; |
40 | unsigned long offset, last_addr, addr, orig_addr; | 40 | unsigned long offset, last_addr, addr, orig_addr; |
41 | pgprot_t pgprot; | 41 | pgprot_t pgprot; |
42 | 42 | ||
@@ -67,7 +67,7 @@ void __iomem *__ioremap(unsigned long phys_addr, unsigned long size, | |||
67 | /* | 67 | /* |
68 | * Ok, go for it.. | 68 | * Ok, go for it.. |
69 | */ | 69 | */ |
70 | area = get_vm_area(size, VM_IOREMAP); | 70 | area = get_vm_area_caller(size, VM_IOREMAP, caller); |
71 | if (!area) | 71 | if (!area) |
72 | return NULL; | 72 | return NULL; |
73 | area->phys_addr = phys_addr; | 73 | area->phys_addr = phys_addr; |
@@ -103,7 +103,7 @@ void __iomem *__ioremap(unsigned long phys_addr, unsigned long size, | |||
103 | 103 | ||
104 | return (void __iomem *)(offset + (char *)orig_addr); | 104 | return (void __iomem *)(offset + (char *)orig_addr); |
105 | } | 105 | } |
106 | EXPORT_SYMBOL(__ioremap); | 106 | EXPORT_SYMBOL(__ioremap_caller); |
107 | 107 | ||
108 | void __iounmap(void __iomem *addr) | 108 | void __iounmap(void __iomem *addr) |
109 | { | 109 | { |