Skip to content

Commit 9425172

Browse files
author
Christoph Hellwig
committed
hexagon: remove __iounmap
No need to indirect iounmap for hexagon. Signed-off-by: Christoph Hellwig <hch@lst.de>
1 parent 0768634 commit 9425172

3 files changed

Lines changed: 3 additions & 8 deletions

File tree

‎arch/hexagon/include/asm/io.h‎

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@
2727
extern int remap_area_pages(unsigned long start, unsigned long phys_addr,
2828
unsigned long end, unsigned long flags);
2929

30-
extern void __iounmap(const volatile void __iomem *addr);
30+
extern void iounmap(const volatile void __iomem *addr);
3131

3232
/* Defined in lib/io.c, needed for smc91x driver. */
3333
extern void __raw_readsw(const void __iomem *addr, void *data, int wordlen);
@@ -175,11 +175,6 @@ void __iomem *ioremap(unsigned long phys_addr, unsigned long size);
175175
#define ioremap_nocache ioremap
176176

177177

178-
static inline void iounmap(volatile void __iomem *addr)
179-
{
180-
__iounmap(addr);
181-
}
182-
183178
#define __raw_writel writel
184179

185180
static inline void memcpy_fromio(void *dst, const volatile void __iomem *src,

‎arch/hexagon/kernel/hexagon_ksyms.c‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
EXPORT_SYMBOL(__clear_user_hexagon);
1515
EXPORT_SYMBOL(raw_copy_from_user);
1616
EXPORT_SYMBOL(raw_copy_to_user);
17-
EXPORT_SYMBOL(__iounmap);
17+
EXPORT_SYMBOL(iounmap);
1818
EXPORT_SYMBOL(__strnlen_user);
1919
EXPORT_SYMBOL(__vmgetie);
2020
EXPORT_SYMBOL(__vmsetie);

‎arch/hexagon/mm/ioremap.c‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ void __iomem *ioremap(unsigned long phys_addr, unsigned long size)
3838
return (void __iomem *) (offset + addr);
3939
}
4040

41-
void __iounmap(const volatile void __iomem *addr)
41+
void iounmap(const volatile void __iomem *addr)
4242
{
4343
vunmap((void *) ((unsigned long) addr & PAGE_MASK));
4444
}

0 commit comments

Comments
 (0)