Skip to content

Commit 045838b

Browse files
committed
openrisc: io: Fixup defines and move include to the end
This didn't seem to cause any issues, but while working on fixing up sparse annotations for OpenRISC I noticed this. This patch moves the include of asm-generic/io.h to the end of the file. Also, we add defines of ioremap and iounmap, that way we don't get duplicate definitions from asm-generic/io.h. Signed-off-by: Stafford Horne <[email protected]>
1 parent c1d55d5 commit 045838b

File tree

1 file changed

+7
-2
lines changed
  • arch/openrisc/include/asm

1 file changed

+7
-2
lines changed

arch/openrisc/include/asm/io.h

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,8 @@
1414
#ifndef __ASM_OPENRISC_IO_H
1515
#define __ASM_OPENRISC_IO_H
1616

17+
#include <linux/types.h>
18+
1719
/*
1820
* PCI: can we really do 0 here if we have no port IO?
1921
*/
@@ -25,9 +27,12 @@
2527
#define PIO_OFFSET 0
2628
#define PIO_MASK 0
2729

28-
#include <asm-generic/io.h>
29-
30+
#define ioremap ioremap
3031
void __iomem *ioremap(phys_addr_t offset, unsigned long size);
32+
33+
#define iounmap iounmap
3134
extern void iounmap(void *addr);
3235

36+
#include <asm-generic/io.h>
37+
3338
#endif

0 commit comments

Comments
 (0)